Skip to main content



      Home
Home » Modeling » OCL » Initialize resourceSet
Initialize resourceSet [message #878477] Tue, 29 May 2012 07:55 Go to next message
Eclipse UserFriend
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 08:22 Go to previous messageGo to next message
Eclipse UserFriend
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 04:16 Go to previous messageGo to next message
Eclipse UserFriend
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 11:06 Go to previous message
Eclipse UserFriend
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 11:07] by 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: Tue Jul 22 19:37:30 EDT 2025

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

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

Back to the top