Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » OCL » Initialize resourceSet
Initialize resourceSet [message #878477] Tue, 29 May 2012 11:55 Go to next message
Andreas Burger is currently offline Andreas BurgerFriend
Messages: 14
Registered: June 2011
Junior Member
Hello,

every time i call the function OCL.initialize(resourceSet), i get the following error:
'org.eclipse.ocl.uml' property not defined; use the launch configuration to define it

Does anybody know what does this error mean and how i can get rid of it?

Best regards,

Andreas
Re: Initialize resourceSet [message #878493 is a reply to message #878477] Tue, 29 May 2012 12:22 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

When running standalone, the initialization code needs to know where you
have installed the org.eclipse.ocl.uml JAR file. You need to proivide
this information as a Java System Property mapping org.eclipse.ocl.uml
to the Jar file.

In Juno, an MWE2-style classpath analysis is used to make this obsolete.

Regards

Ed Willink


On 29/05/2012 12:55, Andreas Burger wrote:
> Hello,
>
> every time i call the function OCL.initialize(resourceSet), i get the
> following error:
> 'org.eclipse.ocl.uml' property not defined; use the launch
> configuration to define it
>
> Does anybody know what does this error mean and how i can get rid of it?
>
> Best regards,
>
> Andreas
Re: Initialize resourceSet [message #878927 is a reply to message #878493] Wed, 30 May 2012 08:16 Go to previous messageGo to next message
Andreas Burger is currently offline Andreas BurgerFriend
Messages: 14
Registered: June 2011
Junior Member
Thanks for the fast respond.
It solve my problem.

Regards

Andreas
Re: Initialize resourceSet [message #879125 is a reply to message #878927] Wed, 30 May 2012 15:06 Go to previous message
Andreas Burger is currently offline Andreas BurgerFriend
Messages: 14
Registered: June 2011
Junior Member
Hi,

now i get strange problem with the ocl parser.
I want to parse a query which uses the method getAppliedStereotypes in it. When i parse it with the OCL class i get the following error:
org.eclipse.ocl.SemanticException: Cannot find operation (getAppliedStereotype(String)) for the type ...
The context for this query is a Class so it should have this function.
The other strange thing is, if the query is executed in the interactive ocl console it works fine.

Does anybody know this error and why it raises?

Regards,

Andreas

[Updated on: Wed, 30 May 2012 15:07]

Report message to a moderator

Previous Topic:[Announce] Eclipse OCL 4.0.0 (Juno) RC2 is now available
Next Topic:Traversing from child to parent in derived relation
Goto Forum:
  


Current Time: Fri Mar 29 15:23:52 GMT 2024

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

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

Back to the top