Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to eliminiate the background ms-dos window

 
Jigar Gosar
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i just want to know that weather the background ms-dos window when we start any application in java (by typing java "MainClassName" or by directly by doubleclicking .jar file in window explorer) can be eliminated, so that my java applicationss look
like any other WINDOWS application.
------------------
Just Joined
 
Cindy Glass
"The Hood"
Sheriff
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you use javaw instead of just java you don't get the window.
>javaw mainclass
 
ssk_p
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi
i used this javaw
but when i click on the shortcut of my application
still the dos - window visible for 1 second .
I didn't get why it is happing ( i am trying it on windows 2000)
do u have nay idea ..
please reply .
thanx
-ssk_p
 
amol bakre
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi!
The jar file solution is perfect for your problem.put all the class files and icons and images etc(resources)in the jar file .Create a file in notepad name it Maifest.mtf
in the file specify the following:-
Main-Class: mainfile
(mainfile is the entry point of your application,or simply put the class file containing public static void main)
in the Manifest file ,include this file in your jar archive.
make a short cut on the desktop pointing to this jar file
woolah
you have yourself what you wanted
amol
 
ssk_p
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by amol bakre:
hi!
The jar file solution is perfect for your problem.put all the class files and icons and images etc(resources)in the jar file .Create a file in notepad name it Maifest.mtf
in the file specify the following:-
Main-Class: mainfile
(mainfile is the entry point of your application,or simply put the class file containing public static void main)
in the Manifest file ,include this file in your jar archive.
make a short cut on the desktop pointing to this jar file
woolah
you have yourself what you wanted
amol


hi amol ..
Can u please tell me what will be ythe location os mainfest.mtf file .And Do i have to add all the filenames in this mainfest.mtf ??
please reply
thanx
-ssk_p
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic