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!

How to use external JARs in Eclipse

807569Jul 18 2006 — edited Jul 18 2006
Hello.

I created a jar file like that:

jar -cvf0 WarShell.jar WarShell.class

I want to use WarShell.class in Eclipse but it not in my classpath,so I choose [Project] -> [Properties] -> Java Build Path -> Libraries -> Add External JARs and add WarShell.jar to the list.

But when I run the program I got a Exception:NoClassDefFoundError.
Why?How to fix it?

Another question... Your classpath is not available in Eclipse,right?

Thanks for your time! ^_^
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 15 2006
Added on Jul 18 2006
12 comments
271 views