my dog learned polymorphism
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
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Reply 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: 9939
    
    6

See if this is of any help.


Never ascribe to malice that which can be adequately explained by stupidity.
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 32599
    
    4
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: 32599
    
    4
Robert Alan Hall wrote:you guys are geniuses! it worked! . . .
Unwarranted flattery will get you anywhere!

But, glad we could help
 
I agree. Here's the link: http://zeroturnaround.com/jrebel
 
subject: black terminal window springs up before my swing window
 
Similar Threads
Problem with a swing application
launching jar from script.bat
Unix Tutorials
iPad vs Kindle(Tech books)
Program.launch of Mac OSX TextEdit can cause problems