The moose likes Beginning Java and the fly likes call main-method inside jar Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply locked New topic

call main-method inside jar

vistatech vistatech

Joined: Jan 22, 2004
Posts: 6
i've got a jar, and i want myclass to execute7run the main class of a jar package.
How can i do it?
Dirk Schreckmann

Joined: Dec 10, 2001
Posts: 7023
vistatech vistatech,
Welcome to JavaRanch!
We ain't got many rules 'round these parts, but we do got one. Please change your display name to comply with The JavaRanch Naming Policy.
Thanks Pardner! Hope to see you 'round the Ranch!

[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
Dirk Schreckmann

Joined: Dec 10, 2001
Posts: 7023
Round these parts, posting the same question in multiple forums is bad practice. It can make it rather difficult to follow a conversation, plus folks spend time saying things that were just said.
Since this is a duplicate of a post in the intermediate forum, I'm closing this one and suggest the conversation continue over there.
Don't get me started about those stupid light bulbs.
subject: call main-method inside jar
Similar Threads
NoClassDefFoundError running a jar file from the command line
Ant - How to create a runnable jar of jars and classes
about jar file
to make a user friendly jar file
quickie... how to unzip a jar file via a java command line from the MSDos window?