Skip to Main Content

Java Programming

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!

Renaming main method class.

zachary1234-851442May 1 2012 — edited May 1 2012
When compiling my java classes, I find that they are always compiled
to a file name of X.class.

If I only ever want to rename one class file, the class file with my main method
inside it, and have

java NewClassName.newExtention

run it as per normal, may I do that, and how do I have it run?

What may I specify in an executable jar file's manifest main-class entry to have this work as well?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 29 2012
Added on May 1 2012
2 comments
542 views