Skip to main content



      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 12:18 Go to next message
Eclipse UserFriend
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 15:32 Go to previous message
Eclipse UserFriend
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: Fri Jul 04 05:14:11 EDT 2025

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

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

Back to the top