Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsProblem running transformation in Java
https://www.eclipse.org/forums/index.php/mv/msg/266747/766298/#msg_766298
I'm trying to run the code provided in "standalone.txt" in Netbeans and I'm getting this exception:
run:
Exception in thread "main" java.lang.NoSuchMethodError: org.eclipse.emf.ecore.EPackage$Registry.getEFactory(Ljava/lang/String;)Lorg/eclipse/emf/ecore/EFactory;
at org.eclipse.uml2.uml.internal.impl.UMLFactoryImpl.init(UMLFactoryImpl.java:257)
at org.eclipse.uml2.uml.UMLFactory.<clinit>(UMLFactory.java:35)
at org.eclipse.uml2.uml.internal.impl.UMLPackageImpl.<init>(UMLPackageImpl.java:1928)
at org.eclipse.uml2.uml.internal.impl.UMLPackageImpl.init(UMLPackageImpl.java:1957)
at org.eclipse.uml2.uml.UMLPackage.<clinit>(UMLPackage.java:83)
at TestAPI.<init>(TestAPI.java:27)
at TestAPI.main(TestAPI.java:117)
Java Result: 1
BUILD SUCCESSFUL (total time: 1 second)
Do you know what I'm doing wrong? Do I have to register the UML metamodel? If so, how can I do it?