Why I need to add some .jar to the Java Build Path ? [message #925335] |
Thu, 27 September 2012 16:18 |
|
Hello,
there is a thing I don't understand on Eclipse 4.2.0.
If I try to import this:
import org.eclipse.emf.ecore.xmi.impl.XMIResourceFactoryImpl;
I need to add to the Java Build Path the Library corresponding :
Right click > Properties > Libraries > Add External JARs...
But if I try to import something else:
import org.eclipse.emf.ecore.resource.Resource;
I don't need to add something to the Java Build Path...
Why the behavior of Eclipse is different in the second case?
Thank you.
Regards.
|
|
|
Re: Why I need to add some .jar to the Java Build Path ? [message #925497 is a reply to message #925335] |
Thu, 27 September 2012 19:32 |
Eclipse User |
|
|
|
Hi,
The EMF's EMF ecore XMI plugin isn't on your plugin's "required" plugins
list. You probably have the EMF resources plugin in required list (or
inherited from a required plugin that exported it). They are different
plugins. You don't need to have both as a required, and if you don't
require it then it won't be available.
Or if you are doing straight non-Eclipse java you have resources jar in
your classpath already (or inherited it through a pre-req export).
Rich
|
|
|
Powered by
FUDForum. Page generated in 0.02515 seconds