|[Acceleo] Class 'System' is not found or is abstract [message #895088]
||Wed, 11 July 2012 16:31
| Toni Marin
Registered: October 2011
We are trying to generate Lydia code from an xmi file. But we get the error "Class 'System' is not found or is abstract".
SO, we are using our own ecore metamodel. All packages are registered in the generated java file (I read it is not possible to register the metamodel alone when it is made of different packages, but all packages have to be individualy registered).
We use Indigo version.
The input model is an .xmi file. Here is the code we use for registering the factory resource:
resourceSet.getResourceFactoryRegistry().getExtensionToFactoryMap().put("xmi", new XMIResourceFactoryImpl());
The heading of the input model is:
<?xml version="1.0" encoding="ASCII"?>
All this packages are registered in the generated java file.
resourceSet.getPackageRegistry().put("http: //zuse.ucc.ie/itobo/structure", org.eclipse.emf.ecore.EcorePackage.eINSTANCE);
However registering everything, the error "class "System" is not found or is abstract" still comes up.
Also, sometimes the error "emtl file is not found" appears (may be significant(?))
Any help will be greatly appreciated.
[Updated on: Thu, 12 July 2012 14:35]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.07939 seconds