Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Why I need to add some .jar to the Java Build Path ?
Why I need to add some .jar to the Java Build Path ? [message #925335] Thu, 27 September 2012 16:18 Go to next message
Yugi Muto is currently offline Yugi Muto
Messages: 33
Registered: February 2012
Member
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 Go to previous message
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
Previous Topic:Do VCS path ignores actually work?
Next Topic:ResourcesPlugin.getWorkspace() returning wrong location
Goto Forum:
  


Current Time: Thu Oct 23 15:17:40 GMT 2014

Powered by FUDForum. Page generated in 0.09060 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software