Can't generate java from UML using Acceleo in Eclipse

后端 未结 3 2030
太阳男子
太阳男子 2021-01-15 04:43

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 th

3条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-15 05:20

    java.lang.ClassNotFoundException: org.eclipse.acceleo.module.sample.Activator cannot be found by org.eclipse.acceleo.module.sample_1.0.0.qualifier
    

    The most likely reason I can think of is that you have used the File > New Plug-in Project wizard and kept most of the default values, yet afterwards removed (or renamed) the "Activator" class that it created in your project.

    The META-INF/MANIFEST.MF file of your project should contain a line that looks like :

    Bundle-Activator: org.eclipse.acceleo.module.sample.Activator
    

    And if it does, it most likely shows a warning or error on that line. You can either remove the line altogether or make sure you indeed have a plug-in activator with that qualified name.

提交回复
热议问题