File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
this week in the
how to start a specific class in a package?
Joined: Mar 20, 2008
Nov 22, 2008 13:48:00
I have a .jar package with several form (form1, form2, etc.) where each form has a main() function.
The question is: it is possible to select at run time the form to be started?
I.e. it exist a command like "java -jar mypackage.jar ...???" that permit to start a particular form?
Joined: Sep 28, 2004
Nov 22, 2008 13:52:00
Well, one option is to not use the "-jar" option, and call the class directly...
-cp mypackage.jar Form1
Java Threads, 3rd Edition
Jini in a Nutshell
Java Gems (contributor)
rocket mass heater
subject: how to start a specific class in a package?
How to deploy a GUI Swing application?
add jar file to classpath programmatically
WAS Server startup fails with Initialization error
jar and RMI don�t work?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014