Skip to main content

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 MutoFriend
Messages: 33
Registered: February 2012

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.
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 UserFriend

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).

Previous Topic:Do VCS path ignores actually work?
Next Topic:ResourcesPlugin.getWorkspace() returning wrong location
Goto Forum:

Current Time: Fri Oct 23 06:20:26 GMT 2020

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

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

Back to the top