aspose file tools*
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: 10916
    
  12

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: 36508
    
  16
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: 36508
    
  16
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://aspose.com/file-tools
 
subject: black terminal window springs up before my swing window
 
Similar Threads
Unix Tutorials
Problem with a swing application
Program.launch of Mac OSX TextEdit can cause problems
launching jar from script.bat
iPad vs Kindle(Tech books)