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