问题描述
我是Eclipse和Acceleo的新手,我一直在努力完成第一代生成器模型教程。我使用开普勒4.3和Acceleo 3.X.我正在跟随从uml生成java代码的教程。该链接是。但是当我尝试运行generate.mtl文件时,错误日志给我一个消息:
无法加载类org .eclipse.acceleo.module.sample.main.Generate
从项目org.eclipse.acceleo.module.sample
它也给了我警告:
我把[comment @ main /]放在模板行下方,执行教程中的所有步骤,我真的不知道问题是什么。
感谢任何帮助或反馈。
我通过更新MANIFEST.MF文件中的类路径来更正此错误:
我添加了bin / projet的文件夹。现在可以正常工作。
Etienne
I am new to Eclipse and Acceleo, and I have been trying to complete the First Generator Model Tutorial. I am using Kepler 4.3 and Acceleo 3.X.I am following the tutorial that generates java code from uml. The link is http://wiki.eclipse.org/Acceleo/Getting_Started. But when I try to run the generate.mtl file, the error log gives me the message:
Couldn't load class org.eclipse.acceleo.module.sample.main.Generate
from project org.eclipse.acceleo.module.sample
It also gives me the warning:
I have put the [comment @main/] below the template line and do all the steps in the tutorial, i really have no idea what the problem is.
I would appreciate any help or feedback.
I corrected this error by updating the classpath in the MANIFEST.MF file :
I added the bin/ folder of the projet. It now works properly.
Etienne
这篇关于在Eclipse中使用Acceleo无法从UML生成java的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!