Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Multiple main classes in jnlp file?

 
Michael Bruesch
Ranch Hand
Posts: 158
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Paul Clapham
Sheriff
Pie
Posts: 20775
30
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 158
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic