NoClassDefFoundError while launching jar in command line [message #1794157] |
Fri, 24 August 2018 11:40  |
Eclipse User |
|
|
|
My problem is very similar to the one here , but since the only solution is related to Maven (which I'm not using), I decided to write another post.
I have a full EMF project (Ecore, Emfatic, Genmodel and Eugenia) which generates EObjects and a XML version of a GMF.
When I run the project in Eclipse, everything works.
However, I need to execute this project in command line. When I write
I get
Unable to initialize the principal class mainclass
Caused by : java.lang.NoClassDefFoundError : org/eclipse/emf/ecore/resource/ResourceSet
Obviously in my code I do the following
import org.eclipse.emf.ecore.resource.ResourceSet;
Some readings online made me think it could be linked to the stack, but it seems more like a problem linked to dependencies.
Note :
When making the JAR, I couldn't include the .diagram project because of various errors such as
Problem writing project.tests/.classpath to JAR : duplicate entry : .classpath
Problem writing project.diagram/.plugin.xml to JAR : duplicate entry : .plugin.xml
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.26344 seconds