Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » newbee ocl standalone
newbee ocl standalone [message #37359] Wed, 14 June 2006 09:55 Go to next message
Chris Lenz is currently offline Chris LenzFriend
Messages: 214
Registered: July 2009
Senior Member
I want to use ocl as standalone.

if i write this in my main class
Query query = QueryFactory.eINSTANCE.createQuery(
"Book.allInstances()->select(b : Book | b <> self and b.title =
self.title)",
EXTLibraryPackage.eINSTANCE.getBook());

I get the following error:
Exception in thread "main" java.lang.NoClassDefFoundError:
lpg/lpgjavaruntime/RuleAction

what jar files do I have to add !

Thanx Chris
Re: newbee ocl standalone [message #37393 is a reply to message #37359] Wed, 14 June 2006 11:05 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

This is a multi-part message in MIME format.
--------------060909040700060706090809
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit

Chris,

The OCL jar org.eclipse.emf.ocl_1.0.0.v200605302037.jar contains a
nested jar:

lib/lpgjavaruntime.jar

That jar needs to be on the classpath. It doesn't seem very nice to
have to unpackage the jar to get at the nested jar. Probably that jar
should be in a separate plugin or the plugin itself shouldn't be jarred
(since Eclipse will unpackage it to get at the nested jar).


Chris Lenz wrote:

> I want to use ocl as standalone.
>
> if i write this in my main class
> Query query = QueryFactory.eINSTANCE.createQuery(
> "Book.allInstances()->select(b : Book | b <> self
> and b.title = self.title)",
> EXTLibraryPackage.eINSTANCE.getBook());
>
> I get the following error:
> Exception in thread "main" java.lang.NoClassDefFoundError:
> lpg/lpgjavaruntime/RuleAction
>
> what jar files do I have to add !
>
> Thanx Chris



--------------060909040700060706090809
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">
Chris,<br>
<br>
The OCL jar org.eclipse.emf.ocl_1.0.0.v200605302037.jar contains a
nested jar:<br>
<blockquote>lib/lpgjavaruntime.jar<br>
</blockquote>
That jar needs to be on the classpath.
Re: newbee ocl standalone [message #37460 is a reply to message #37393] Wed, 14 June 2006 13:02 Go to previous message
Eclipse UserFriend
Originally posted by: cdamus.ca.ibm.com

Hi, Ed, Chris,

No, it isn't very nice, but building and supporting an official stand-alone
delivery of OCL just didn't fit in this first release. It's on the books
for the next release.

In the mean-time, it may actually be easier to download the
lpgjavaruntime.jar from the source (http://sourceforge.net/projects/lpg)
than to unpack it from the OCL jar. On the LPG home page you will also
find documentation and the LPG tools, in case these are of interest.

Cheers,

Christian


Ed Merks wrote:

> Chris,
>
> The OCL jar org.eclipse.emf.ocl_1.0.0.v200605302037.jar contains a
> nested jar:
>
> lib/lpgjavaruntime.jar
>
> That jar needs to be on the classpath. It doesn't seem very nice to
> have to unpackage the jar to get at the nested jar. Probably that jar
> should be in a separate plugin or the plugin itself shouldn't be jarred
> (since Eclipse will unpackage it to get at the nested jar).
>
>
> Chris Lenz wrote:
>
>> I want to use ocl as standalone.
>>
>> if i write this in my main class
>> Query query = QueryFactory.eINSTANCE.createQuery(
>> "Book.allInstances()->select(b : Book | b <> self
>> and b.title = self.title)",
>> EXTLibraryPackage.eINSTANCE.getBook());
>>
>> I get the following error:
>> Exception in thread "main" java.lang.NoClassDefFoundError:
>> lpg/lpgjavaruntime/RuleAction
>>
>> what jar files do I have to add !
>>
>> Thanx Chris
Re: newbee ocl standalone [message #580760 is a reply to message #37359] Wed, 14 June 2006 11:05 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33217
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------060909040700060706090809
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit

Chris,

The OCL jar org.eclipse.emf.ocl_1.0.0.v200605302037.jar contains a
nested jar:

lib/lpgjavaruntime.jar

That jar needs to be on the classpath. It doesn't seem very nice to
have to unpackage the jar to get at the nested jar. Probably that jar
should be in a separate plugin or the plugin itself shouldn't be jarred
(since Eclipse will unpackage it to get at the nested jar).


Chris Lenz wrote:

> I want to use ocl as standalone.
>
> if i write this in my main class
> Query query = QueryFactory.eINSTANCE.createQuery(
> "Book.allInstances()->select(b : Book | b <> self
> and b.title = self.title)",
> EXTLibraryPackage.eINSTANCE.getBook());
>
> I get the following error:
> Exception in thread "main" java.lang.NoClassDefFoundError:
> lpg/lpgjavaruntime/RuleAction
>
> what jar files do I have to add !
>
> Thanx Chris



--------------060909040700060706090809
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">
Chris,<br>
<br>
The OCL jar org.eclipse.emf.ocl_1.0.0.v200605302037.jar contains a
nested jar:<br>
<blockquote>lib/lpgjavaruntime.jar<br>
</blockquote>
That jar needs to be on the classpath.


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: newbee ocl standalone [message #580821 is a reply to message #37393] Wed, 14 June 2006 13:02 Go to previous message
Eclipse UserFriend
Originally posted by: cdamus.ca.ibm.com

Hi, Ed, Chris,

No, it isn't very nice, but building and supporting an official stand-alone
delivery of OCL just didn't fit in this first release. It's on the books
for the next release.

In the mean-time, it may actually be easier to download the
lpgjavaruntime.jar from the source (http://sourceforge.net/projects/lpg)
than to unpack it from the OCL jar. On the LPG home page you will also
find documentation and the LPG tools, in case these are of interest.

Cheers,

Christian


Ed Merks wrote:

> Chris,
>
> The OCL jar org.eclipse.emf.ocl_1.0.0.v200605302037.jar contains a
> nested jar:
>
> lib/lpgjavaruntime.jar
>
> That jar needs to be on the classpath. It doesn't seem very nice to
> have to unpackage the jar to get at the nested jar. Probably that jar
> should be in a separate plugin or the plugin itself shouldn't be jarred
> (since Eclipse will unpackage it to get at the nested jar).
>
>
> Chris Lenz wrote:
>
>> I want to use ocl as standalone.
>>
>> if i write this in my main class
>> Query query = QueryFactory.eINSTANCE.createQuery(
>> "Book.allInstances()->select(b : Book | b <> self
>> and b.title = self.title)",
>> EXTLibraryPackage.eINSTANCE.getBook());
>>
>> I get the following error:
>> Exception in thread "main" java.lang.NoClassDefFoundError:
>> lpg/lpgjavaruntime/RuleAction
>>
>> what jar files do I have to add !
>>
>> Thanx Chris
Previous Topic:[Announce] EMF/GMF Webinar
Next Topic:[Announce] EMFT OCL 1.0.0 I200606151627 is available
Goto Forum:
  


Current Time: Tue Sep 24 12:11:04 GMT 2024

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

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

Back to the top