Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » xText: Maven no class def found error
xText: Maven no class def found error [message #1741268] Wed, 24 August 2016 09:39 Go to next message
Michael Müller is currently offline Michael MüllerFriend
Messages: 20
Registered: August 2016
Junior Member
Hello community

if create the greeting example with a maven build. I get always (windows) follow error:

1    [org.eclipse.emf.mwe2.launch.runtime.Mwe2Launcher.main()] ERROR mf.mwe2.launch.runtime.Mwe2Launcher  - org/eclipse/emf/ecore/resource/Resource$Factory$Registry
java.lang.NoClassDefFoundError: org/eclipse/emf/ecore/resource/Resource$Factory$Registry
	at org.eclipse.emf.mwe2.language.Mwe2StandaloneSetupGenerated.createInjectorAndDoEMFRegistration(Mwe2StandaloneSetupGenerated.java:21)
	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Launcher.run(Mwe2Launcher.java:75)
	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Launcher.main(Mwe2Launcher.java:36)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:293)
	at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.ClassNotFoundException: org.eclipse.emf.ecore.resource.Resource$Factory$Registry
	at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
	... 9 more


Which maven dependencies must be added?
Re: xText: Maven no class def found error [message #1741272 is a reply to message #1741268] Wed, 24 August 2016 10:04 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 13887
Registered: July 2009
Senior Member
Which Xtext version do you use?

Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: xText: Maven no class def found error [message #1741279 is a reply to message #1741272] Wed, 24 August 2016 10:25 Go to previous messageGo to next message
Michael Müller is currently offline Michael MüllerFriend
Messages: 20
Registered: August 2016
Junior Member
<xtextVersion>2.10.0</xtextVersion>
Re: xText: Maven no class def found error [message #1741284 is a reply to message #1741279] Wed, 24 August 2016 10:52 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 13887
Registered: July 2009
Senior Member
hmmm maybe your m2/repository dir contains some wrong stuff.
just booted by windows and it is working fine


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: xText: Maven no class def found error [message #1741376 is a reply to message #1741284] Wed, 24 August 2016 14:09 Go to previous message
Michael Müller is currently offline Michael MüllerFriend
Messages: 20
Registered: August 2016
Junior Member
Thanks for the hint with the maven repo. I deleted my maven repo and start it again, works Smile . Maye a corrupt jar by a broken download.
Previous Topic:use of ->
Next Topic:Algorithmic language project for writing algorithms in French.
Goto Forum:
  


Current Time: Tue Apr 20 05:04:31 GMT 2021

Powered by FUDForum. Page generated in 0.02138 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top