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!

Create JAR file

807603Dec 13 2007 — edited Dec 15 2007
Hi all,

I have a little problem when am trying to export my project with embedded additional JAR file located inside a folder called lib.

To demonstrate my problem I have created another project called Test which contains two classes Main (contains main method)
and UI (a simple JFrame with a button to close the application). I exported this project by using Eclipse and everything works fine

But once I added the additional JAR file specialized in Look&Feel (Project>Properties>Java Build Path, click on Add JARs not Add External JARs)
and export the project again, I got problem.

Project directory contains after exporting (with the additional JAR):
- META-INF
              |_ META-INF.MF
- lib
    |_ substance.jar
- com
       |_ test
               |_ Main.class
               |_ UI.class
- .classpath
META-INF.MF contains the following

Manifest-Version: 1.0
Main-Class: com.test.Main

.classpath contains the following:

<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="lib" path="lib/substance.jar"/>
<classpathentry kind="output" path="bin"/>
</classpath>

Error Message Details:
Exception in thread "main" java.lang.NoClassDefFoundError: org/jvnet/substance/skin/SubstanceRavenGraphiteGlassLookAndFeel

How to add
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 12 2008
Added on Dec 13 2007
3 comments
253 views