Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » how to solve ecore lib issue(how to solve lib issue with ecore)
how to solve ecore lib issue [message #627363] Wed, 22 September 2010 23:31 Go to next message
Peter  is currently offline Peter Friend
Messages: 4
Registered: September 2010
Junior Member
Platform:
Eclipse 3.6.0 + EMF + Ecore Tools

Steps:
1). Create: Empty EMF project
2). Create Ecore diagram
3). Generating Java code, from the ecore model.

Issue: Eclipse can not solve
import org.eclipse.emf.ecore.EObject;
and other ecore related classes.

It seems I have to add the jar files like ecore.jar manually into the Java Build Path of the project properties.

Is any better way to do it?

thanks





Re: how to solve ecore lib issue [message #627693 is a reply to message #627363] Thu, 23 September 2010 03:51 Go to previous messageGo to next message
Ashwani Kr Sharma is currently offline Ashwani Kr SharmaFriend
Messages: 119
Registered: July 2009
Location: Bangalore, India
Senior Member

Instead of adding ecore.jar, creating dependency to plugin org.eclipse.emf should be sufficient.

Regards,
Ashwani Kr Sharma
Re: how to solve ecore lib issue [message #627885 is a reply to message #627363] Thu, 23 September 2010 06:27 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------030606040008090004000800
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit

Peter,

The empty EMF project should already have that on the classpath. I.e.,
I'd expect the MANIFEST.MF to contain

Require-Bundle: org.eclipse.emf.ecore

Isn't that the case?

Perhaps your default target platform doesn't include EMF for some reason?


Peter wrote:
> Platform: Eclipse 3.6.0 + EMF + Ecore Tools
>
> Steps: 1). Create: Empty EMF project
> 2). Create Ecore diagram
> 3). Generating Java code, from the ecore model.
>
> Issue: Eclipse can not solve import org.eclipse.emf.ecore.EObject;
> and other ecore related classes.
> It seems I have to add the jar files like ecore.jar manually into the
> Java Build Path of the project properties.
> Is any better way to do it?
>
> thanks
>
>
>
>
>
>

--------------030606040008090004000800
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 8bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Peter,<br>
<br>
The empty EMF project should already have that on the classpath.  I.e.,
I'd expect the MANIFEST.MF to contain<br>
<blockquote>Require-Bundle: org.eclipse.emf.ecore<br>
</blockquote>
Isn't that the case?  <br>
<br>
Perhaps your default target platform doesn't include EMF for some
reason?<br>
<br>
<br>
Peter wrote:
<blockquote cite="mid:i7e3gd$b5f$1@news.eclipse.org" type="cite">Platform:
Eclipse 3.6.0 + EMF + Ecore Tools
<br>
<br>
Steps: 1). Create:  Empty EMF project
<br>
2). Create Ecore diagram
<br>
3). Generating Java code,  from the ecore model.
<br>
<br>
Issue:  Eclipse can not solve   import org.eclipse.emf.ecore.EObject;
and other ecore related classes. <br>
It seems I have to add the jar files like ecore.jar manually into the
Java Build Path of the project properties. <br>
Is any better way to do it?
<br>
<br>
thanks
<br>
<br>
<br>
<br>
<br>
<br>
<br>
</blockquote>
</body>
</html>

--------------030606040008090004000800--


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: how to solve ecore lib issue [message #628716 is a reply to message #627885] Thu, 23 September 2010 18:34 Go to previous messageGo to next message
Peter  is currently offline Peter Friend
Messages: 4
Registered: September 2010
Junior Member
Pretty strange.

As you said, I create a "Empty EMF Project" and check the
META-INF/MANIFEST.MF

from Dependencies tab, I see that org.eclipse.emf.ecore has been placed in, but with a red cross mark.

It seems my installation does not have this "Plug-ins"..



[quote title=Ed Merks wrote on Thu, 23 September 2010 02:27]This is a multi-part message in MIME format.
--------------030606040008090004000800
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit

Peter,

The empty EMF project should already have that on the classpath. I.e.,
I'd expect the MANIFEST.MF to contain

Require-Bundle: org.eclipse.emf.ecore

Isn't that the case?

Perhaps your default target platform doesn't include EMF for some reason?
Re: how to solve ecore lib issue [message #628741 is a reply to message #628716] Thu, 23 September 2010 21:33 Go to previous message
Peter  is currently offline Peter Friend
Messages: 4
Registered: September 2010
Junior Member
I remove the eclipse and install everything from scratch.

It seems working fine now..

Previous Topic:how to verify object on object change(setter called)
Next Topic:selection in ecore editor reverting to previous node
Goto Forum:
  


Current Time: Fri Mar 29 01:12:13 GMT 2024

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

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

Back to the top