Home » Modeling » M2T (model-to-text transformation) » [Acceleo] Simple, step by step, working tutorial, from UML to code?
|Re: [Acceleo] Simple, step by step, working tutorial, from UML to code? [message #1021658 is a reply to message #1021322]
||Wed, 20 March 2013 13:16
| Stephane Begaudeau
Registered: April 2010
Location: Nantes (France)
"Couldn't load class org.eclipse.acceleo.module.sample.main.Generate
from project org.eclipse.acceleo.module.sample"
and a warning:
"Couldn't load class org.eclipse.acceleo.module.sample.main.Generate.
Check that its containing package is exported."
If you open the file MANIFEST.MF of your generator, do you have the package containing your java launcher exported as detailled here?
Since this module contains a @main annotation, we will need to export its containing package (so that other Eclipse plugins may launch the generation). For this, open the META-INF/MANIFEST.MF file of your project, go to its Runtime tab, click Add and select the org.eclipse.acceleo.module.sample.main package. The tab should look like this when you are done :
Stephane Begaudeau, Obeo
Blog: http://stephanebegaudeau.tumblr.com | Eclipse Java Development Tools Tips and Tricks
Current Time: Tue Jan 24 03:00:11 GMT 2017
Powered by FUDForum
. Page generated in 0.35774 seconds