Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » export an acceleo plugin on .jar
export an acceleo plugin on .jar [message #642900] Fri, 03 December 2010 09:45 Go to next message
charfi asma is currently offline charfi asmaFriend
Messages: 17
Registered: July 2009
Junior Member
Hello,
I tried to export an acceleo plugin to .jar and call java -jar plugin.jar to execute it.
I get this pb although I specified the class generator as main class while exporting the plugin
java -jar org.eclipse.acceleo.module.sample
Exception in thread "main" java.lang.NoClassDefFoundError: org/eclipse/acceleo/engine/service/AbstractAcceleoGenerator
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:637)
at java.security.SecureClassLoader.defineClass(SecureClassLoade r.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:277)
at java.net.URLClassLoader.access$000(URLClassLoader.java:73)
at java.net.URLClassLoader$1.run(URLClassLoader.java:212)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:323)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294 )
at java.lang.ClassLoader.loadClass(ClassLoader.java:268)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:336 )
Caused by: java.lang.ClassNotFoundException: org.eclipse.acceleo.engine.service.AbstractAcceleoGenerator
at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:323)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294 )
at java.lang.ClassLoader.loadClass(ClassLoader.java:268)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:336 )
... 12 more
Could not find the main class: org.eclipse.acceleo.module.sample.files.Generate. Program will exit.

any idea ?

Asma
Re: export an acceleo plugin on .jar [message #643239 is a reply to message #642900] Mon, 06 December 2010 08:40 Go to previous message
Stephane Begaudeau is currently offline Stephane BegaudeauFriend
Messages: 413
Registered: April 2010
Location: Nantes (France)
Senior Member

Hi,

It seems that your are missing a dependency with the Acceleo runtime (org.eclipse.acceleo.engine).

Stephane Begaudeau, Obeo.



Previous Topic:[Acceleo 3.1.0M3] install site.xml
Next Topic:[check] Problem with check under Helios
Goto Forum:
  


Current Time: Fri Nov 28 13:50:46 GMT 2014

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

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