Re: java jar file/manifest question

  • From: "Littlefield, Tyler" <tyler@xxxxxxxxxxxxx>
  • To: programmingblind@xxxxxxxxxxxxx
  • Date: Tue, 22 Mar 2011 16:45:54 -0600

Thanks, that did the trick!
On 3/22/2011 3:08 PM, QuentinC wrote:
Hello,

You don't have to bother with manifest only to make an executable jar file. Use the e option instead, it's easier.
Example: jar cfe pack.jar MainClassName Class1.class Class2.class ...
MainClassName is the name of the class containing the main method, without .class suffix

Next, to run an executable jar named X.jar, the command is :
java -jar X.jar

__________
View the list's information and change your settings at //www.freelists.org/list/programmingblind




--

Thanks,
Ty

__________
View the list's information and change your settings at //www.freelists.org/list/programmingblind

Other related posts: