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 |
|
Hi,
"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?
Quote: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 :
Regards,
Stephane Begaudeau, Obeo
--
Twitter: @sbegaudeau
Google+: +stephane.begaudeau
Blog: http://stephanebegaudeau.tumblr.com | Eclipse Java Development Tools Tips and Tricks
|
|
|
Re: [Acceleo] Simple, step by step, working tutorial, from UML to code? [message #1021812 is a reply to message #1021658] |
Wed, 20 March 2013 18:14 |
Joost Kraaijeveld Messages: 273 Registered: July 2009 |
Senior Member |
|
|
On 20-03-13 14:16, Stephane Begaudeau wrote:
> Hi,
>
> "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
> http://wiki.eclipse.org/Acceleo/Getting_Started#Creating_a_main_module?
Of course not. The tutorial does not mention this at the point (or
before the point) where it says "Right-click on the Acceleo module file
(that is, the generate.mtl file) and select Run As > Launch Acceleo
Application.". It mentions this 8 times pages down on a 21' screen, 9600
pixels below the first time it says to generate. Strange that I did not
notice this before. Silly me.
But thanks for the tip. It seems to work now.
Joost
Cheers,
Joost
|
|
|
Goto Forum:
Current Time: Wed Sep 25 19:49:01 GMT 2024
Powered by FUDForum. Page generated in 0.04011 seconds
|