• Post Reply Bookmark Topic Watch Topic
  • New Topic

Java Applications & the DOS Window  RSS feed

 
Jeff Lewis
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have an application that is run via desktop shortcut (W95/98/NT) which opens a DOS window. While that window can be run minimized, there are still 2 icons on the task bar. Is there any way to run a Java application without opening a DOS window, and without getting the two icons on the task bar? Help appreciated.
------------------
 
Frank Hale
Ranch Hand
Posts: 230
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Put your app in a Jar file. I've seen many apps lauch when you double click on the Jar file and no DOS window pops up.
Hope this helps,
Frank
 
Noah Carroll
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
just make sure that you add the line
Main-Class: mainclassname

to your jar mainfest file
------------------
I hope its helps, feel free to email me noahcarroll@juno.com
 
Jeroen Wenting
Ranch Hand
Posts: 5093
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Another option that does not require mucking with jarfiles is to use javaw instead of java as the application launcher for the VM. This has no window (so no debug output or stacktraces when things go oops and is therefore not suited for development)
 
ssk_p
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Jeff Lewis:
I have an application that is run via desktop shortcut (W95/98/NT) which opens a DOS window. While that window can be run minimized, there are still 2 icons on the task bar. Is there any way to run a Java application without opening a DOS window, and without getting the two icons on the task bar? Help appreciated.


hi...
u can use javaw instead of java
do reply
thanx
-ssk_p
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!