File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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.
 
 
subject: Multiple main classes in jnlp file?