Skip to main content



      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 05:39 Go to next message
Eclipse UserFriend
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 06:04 Go to previous messageGo to next message
Eclipse UserFriend
Which Xtext version do you use?
Re: xText: Maven no class def found error [message #1741279 is a reply to message #1741272] Wed, 24 August 2016 06:25 Go to previous messageGo to next message
Eclipse UserFriend
<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 06:52 Go to previous messageGo to next message
Eclipse UserFriend
hmmm maybe your m2/repository dir contains some wrong stuff.
just booted by windows and it is working fine
Re: xText: Maven no class def found error [message #1741376 is a reply to message #1741284] Wed, 24 August 2016 10:09 Go to previous message
Eclipse UserFriend
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: Mon Jul 07 19:15:20 EDT 2025

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

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

Back to the top