Skip to Main Content

Java HotSpot Virtual Machine

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How should I deploy my java application

1010537May 23 2013 — edited May 23 2013
Let's say I have a package with a main class, and the main class uses some class in the package

I export it all in the package in a jar file using Eclipse

Then, I put the jar file in the lib
and run using

java -cp "A1.jar";"lib/*" package/Mainclass

Is this the correct way of running java application?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 20 2013
Added on May 23 2013
1 comment
1,170 views