This week's book giveaway is in the Reactive Progamming forum.
We're giving away four copies of Reactive Streams in Java: Concurrency with RxJava, Reactor, and Akka Streams and have Adam Davis on-line!
See this thread for details.
Win a copy of Reactive Streams in Java: Concurrency with RxJava, Reactor, and Akka Streams this week in the Reactive Progamming forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar

Java Applications & the DOS Window

 
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.
------------------
 
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
 
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
 
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)
 
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
 
Good night. Drive safely. Here's a tiny ad for the road:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!