aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes How to eliminiate the background ms-dos window Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "How to eliminiate the background ms-dos window" Watch "How to eliminiate the background ms-dos window" New topic
Author

How to eliminiate the background ms-dos window

Jigar Gosar
Greenhorn

Joined: May 09, 2001
Posts: 5
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


Just Joined
Cindy Glass
"The Hood"
Sheriff

Joined: Sep 29, 2000
Posts: 8521
If you use javaw instead of just java you don't get the window.
>javaw mainclass


"JavaRanch, where the deer and the Certified play" - David O'Meara
ssk_p
Greenhorn

Joined: Jun 11, 2001
Posts: 4
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

Joined: May 21, 2001
Posts: 25
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

Joined: Jun 11, 2001
Posts: 4
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to eliminiate the background ms-dos window