*
The moose likes JNLP and Web Start and the fly likes Multiple main classes in jnlp file? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JNLP and Web Start
Bookmark "Multiple main classes in jnlp file?" Watch "Multiple main classes in jnlp file?" New topic
Author

Multiple main classes in jnlp file?

Michael Bruesch
Ranch Hand

Joined: Sep 23, 2001
Posts: 158
I'm trying to run my application using Web Start but I have 2 main classes I need to run (it doesn't work for me to call one main from the other...long story). Is there a way to accomplish this?


Michael J Bruesch<br /><i>I code, therefore I am.</i>
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

One WebStart for each class you want to run? Sorry, but I can't imagine what it would look like if you ran two classes. Do they both have GUIs?
Michael Bruesch
Ranch Hand

Joined: Sep 23, 2001
Posts: 158
Yes, each class has it's own GUI. It's ugly but it's the only way I could figure out how to run the queries concurrently. I've been told now that the java.util.Timer runs each timer event on it's own thread. I'll have to try that and see if it works (I've been using the javax.swing.Timer). Otherwise I'll have to take the ugly approach again and use 2 different web starts.

Thanks Paul.
 
Don't get me started about those stupid light bulbs.
 
subject: Multiple main classes in jnlp file?
 
Similar Threads
Calling a variable form the main class
dont want any jvm window while my app is running
copiles ok but is not running! HELP!!
Anonymous inner classes : How to run their methods ?
Compiles but does not run! HELP!!!