Larry Brister
asked on
Export Java JAR file doesn't execute
New to this...
I installed Eclipse and JDK
Imported m5.jar file
Changed one class to display a different message
Exported to a project folder.
To execute I run from a command prompt from my Java\jre7\bin folder
I renamed the old m5.jar to _m5.jar
Pasted in the new m5.jar
when I try and run this...
java -cp m5.jar org.m5.sdk.hostedconnect.v 1.ScreenPo p https://hostedconnect.m5net.com 1234567890 12345
I get the old message.
The changes aren't seen.
Do I need to restart something?
I installed Eclipse and JDK
Imported m5.jar file
Changed one class to display a different message
Exported to a project folder.
To execute I run from a command prompt from my Java\jre7\bin folder
I renamed the old m5.jar to _m5.jar
Pasted in the new m5.jar
when I try and run this...
java -cp m5.jar org.m5.sdk.hostedconnect.v
I get the old message.
The changes aren't seen.
Do I need to restart something?
Use Java decompiler and check whether the created jar has the proper java class
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
That did it.
Thanks
Thanks
If you export properly (setting the name of the main class) then all you should need is
Open in new window
Not a good idea to work in the jdk bin directory btw - put that directory in PATH and put your code/jars elsewhere