Two Laptop Bag*
The moose likes Beginning Java and the fly likes black terminal window springs up before my swing window Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "black terminal window springs up before my swing window" Watch "black terminal window springs up before my swing window" New topic
Author

black terminal window springs up before my swing window

Robert Alan Hall
Greenhorn

Joined: Oct 04, 2012
Posts: 2
Hi all,

I've just successfully launched my Swing app (developed in NetBeans) from the distributable files created automatically at building.

But here's the problem...

I've created a Windows short cut to the app using the java directory as the first command and the location of the jar file as the parameter... It runs...

Except first, it displays a black terminal window on the screen. If I close the terminal window, it closes the app. Probably it's because the GUI is launched from a non-swing component based class, no?

Is there a way to stop my jar file launching a black terminal window thing before launching my Swing app? It looks untidy!

thanks for help,

Robert
fred rosenberger
lowercase baba
Bartender

Joined: Oct 02, 2003
Posts: 11318
    
  16

See if this is of any help.


There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38881
    
  23
Welcome to the Ranch

I think the suggestion to use javaw in the thread Fred quoted will probably help.
Robert Alan Hall
Greenhorn

Joined: Oct 04, 2012
Posts: 2
you guys are geniuses! it worked! I'll be back, I'm sure.

thanks very much :-)
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38881
    
  23
Robert Alan Hall wrote:you guys are geniuses! it worked! . . .
Unwarranted flattery will get you anywhere!

But, glad we could help
 
Consider Paul's rocket mass heater.
 
subject: black terminal window springs up before my swing window