Skip to Main Content

New to Java

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!

importing class files

843789Mar 27 2009 — edited Mar 27 2009
Hi,
I'm new to Eclipse and need help.

I have been given a folder with 5 classes and 1 class with a main method.
My first question is: Is there a way to import these classes into eclipse and run the main class with main method? I don't have any java files.

What I have to do is basically write a java source file for the main class, but without decompiling it.
My second question: Is there a way to import the 5 classes to my workspace so that I can use them when I recreate the java file for the main class?

I have tried searching everywhere, but could not find a solution that worked.
Thanks
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 24 2009
Added on Mar 27 2009
5 comments
329 views