Building EMF Compare with Guava Libraries [message #1006612] |
Fri, 01 February 2013 07:35 |
Pedro Dusso Messages: 3 Registered: January 2013 |
Junior Member |
|
|
Hello,
I'm building EMF Compare clone from this git.
When I build and export the plugin as it comes, I got the following errors in my standalone java application:
Exception in thread "main" java.lang.NoClassDefFoundError: com/google/common/collect/Sets
at org.eclipse.emf.compare.scope.AbstractComparisonScope.<init>(AbstractComparisonScope.java:55)
at org.eclipse.emf.compare.scope.FilterComparisonScope.<init>(FilterComparisonScope.java:63)
at org.eclipse.emf.compare.scope.DefaultComparisonScope.<init>(DefaultComparisonScope.java:40)
at org.eclipse.emf.compare.EMFCompare.createDefaultScope(EMFCompare.java:127)
at UMLModel.main(UMLModel.java:118)
Caused by: java.lang.ClassNotFoundException: com.google.common.collect.Sets
at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
So I decided to update, rebuild and reexport as a plugin the EMF Compare. I downloaded the Guava libraries, since the original google collections page on googlecode says to do it.
I added the guava-14.0-rc1.jar as a external *.jar file, and let Eclipse rebuild it. I got the following errors:
The method getUnchecked(EObject) is undefined for the type Cache<EObject,Iterable<String>> URIDistance.java /org.eclipse.emf.compare/src/org/eclipse/emf/compare/match/eobject line 63 Java Problem
The method getUnchecked(EObject) is undefined for the type Cache<EObject,Iterable<String>> URIDistance.java /org.eclipse.emf.compare/src/org/eclipse/emf/compare/match/eobject line 64 Java Problem
The method getUnchecked(EObject) is undefined for the type Cache<EObject,Iterable<String>> URIDistance.java /org.eclipse.emf.compare/src/org/eclipse/emf/compare/match/eobject line 131 Java Problem
The method getUnchecked(EObject) is undefined for the type Cache<EObject,URI> EqualityHelper.java /org.eclipse.emf.compare/src/org/eclipse/emf/compare/utils line 181 Java Problem
The method get(EObject, Callable<? extends URI>) in the type Cache<EObject,URI> is not applicable for the arguments (EObject) EqualityHelper.java /org.eclipse.emf.compare/src/org/eclipse/emf/compare/utils line 249 Java Problem
The method getUnchecked(EObject) is undefined for the type Cache<EObject,URI> EqualityHelper.java /org.eclipse.emf.compare/src/org/eclipse/emf/compare/utils line 182 Java Problem
The method get(String, Callable<? extends EObjectIndex>) in the type Cache<String,EObjectIndex> is not applicable for the arguments (String) ByTypeIndex.java /org.eclipse.emf.compare/src/org/eclipse/emf/compare/match/eobject line 113 Java Problem
The method get(String, Callable<? extends EObjectIndex>) in the type Cache<String,EObjectIndex> is not applicable for the arguments (String) ByTypeIndex.java /org.eclipse.emf.compare/src/org/eclipse/emf/compare/match/eobject line 129 Java Problem
The method get(String, Callable<? extends EObjectIndex>) in the type Cache<String,EObjectIndex> is not applicable for the arguments (String) ByTypeIndex.java /org.eclipse.emf.compare/src/org/eclipse/emf/compare/match/eobject line 83 Java Problem
Am I doing the correct procedure to use the EMF Compare?
Thanks
|
|
|
|
Powered by
FUDForum. Page generated in 0.01634 seconds