|
Re: Using EMF Project as ordinary JavaProject... [message #194728 is a reply to message #194690] |
Fri, 16 February 2007 21:44 |
Eclipse User |
|
|
|
Originally posted by: merks.ca.ibm.com
Zakir,
You shouldn't need to make a jar. Adding the EMF project to the Java
Build Path via the Projects tab should be sufficient.
Personally I never use just an ordinary project since a plugin project
is much easier to manage and ultimately can be used to build a jar that
functions stand alone.
zakir wrote:
> Hi,
>
> I want to use EMF project in the java project....
>
> I had made the jar of the EMF project and added in the java build path
> of my ordinary java project....
>
> I am getting the API's but i am not able to access the methods inside
> these classes...
>
> Can you plz tell me regarding this...
>
> Regards,
>
> Zakir
>
|
|
|
|
Re: Using EMF Project as ordinary JavaProject... [message #194766 is a reply to message #194752] |
Sat, 17 February 2007 12:44 |
Eclipse User |
|
|
|
Originally posted by: merks.ca.ibm.com
Zakir,
You'd need to add the jar for all the plugins that your model project
depends on, e.g., org.eclipse.emf.common and org.eclipse.emf.ecore.
(It's much easier to let the PDE manage your classpath via dependencies.)
zakir wrote:
> Hi Merks,
>
> I added the EMF project in the java build path..
> and i am able to access certain method for which the return type is of
>
> Java type...
>
> When ever EMF related methods like....
>
> In my class i have a method
> public EList getStudents()
> {
>
> return object of EList;
> }
>
> I am not able to access getStudents() method at all.....
>
> -------------
>
> When the method is of java type...
>
> for example String getName() is my method....
>
> public String getName()
> {
> return name;
> }
>
> I am able to access these methods in a fine way...
>
> Could you plz suggest me what i need to do...
>
> Regards,
>
> Zakir
>
|
|
|
|
Re: Using EMF Project as ordinary JavaProject... [message #194800 is a reply to message #194790] |
Sat, 17 February 2007 13:32 |
Eclipse User |
|
|
|
Originally posted by: merks.ca.ibm.com
This is a multi-part message in MIME format.
--------------050703010709070703090806
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit
Zakir,
It's definitely a classpath issue, so my best advice is to use plugins
because they manage this much more easily. Ignoring that advice puts
you in the position of needing to set up the build classpath correctly
by hand. If you look at a plugin's dependencies, you can see exactly
which jars it depends as in this example:
So for the library example, you'd need to put the jars for ecore, common
and xmi on the classpath. (EMF does not have a "hard" dependency on
OSGi/Eclipse so you should not need those on the classpath unless you
use those things directly.)
zakir wrote:
> Hi Merks,
>
> I am very sorry to say you that.. I had tried all the steps you told..
>
> But my problem is not resolving yet....
>
> Could you plz suggest me regarding this...
>
> Regards,
>
> Zakir
>
--------------050703010709070703090806
Content-Type: multipart/related;
boundary="------------000701060903090806090602"
--------------000701060903090806090602
Content-Type: text/html; charset=ISO-8859-15
Content-Transfer-Encoding: 8bit
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-15"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Zakir,<br>
<br>
It's definitely a classpath issue, so my best advice is to use plugins
because they manage this much more easily.
|
|
|
Powered by
FUDForum. Page generated in 0.08165 seconds