Manning's Countdown to 2014
. Use discount code crdotd14 all month for 50% off every deal.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Java Executable file help?
Joined: May 23, 2005
Dec 20, 2005 13:36:00
I hava created a jar file i can run it from my computer doing the following
But this same program when I click it on a windows machine it does not work saying it cant find main is that a normal behavior.
Note the windows XP machine has only JRE
Also I have only one class and the main method is inside of it.
in the manifest line I just write the name of my class.
Joined: Jan 08, 2003
Dec 20, 2005 15:45:00
Your manifest file should be something like this.
and make sure that the text file(Manifest.txt) must end with a new line or carriage return. The last line will not be parsed properly if it does not end with a new line or carriage return
"Failure is not when you fall down; its only when you fail to get up again."
Joined: Aug 20, 2001
Dec 21, 2005 09:00:00
You need to associate the .jar extension with the java (or, more likely, the javaw) command.
Piscis Babelis est parvus, flavus, et hiridicus, et est probabiliter insolitissima raritas in toto mundo.
subject: Java Executable file help?
xxxx.jar seen as xxxx.zip on desktop and won't run
Converting .class to .com
Problem running jar on new Windows 7 install
Jar - more than 1 main
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013