Skip to main content



      Home
Home » Modeling » M2T (model-to-text transformation) » [Acceleo] ClassNotFoundException if Runner is Acceleo Plug-in Application([Acceleo] ClassNotFoundException if Runner is Acceleo Plug-in Application)
[Acceleo] ClassNotFoundException if Runner is Acceleo Plug-in Application [message #652779] Sun, 06 February 2011 12:02 Go to next message
Eclipse UserFriend
Hi,

Acceleo version: 3.0.1.v201009150438

Problem observed:
I have implemented a java service that is called from my .mtl file. This java service uses methods from a third party library, mylib.jar.

Location of mylib.jar is specified in Acceleo project's classpath. This location also appears in Classpath tab in Run Configuration under "User Entries -> <my project name> (default classpath)".

If Acceleo project is executed standalone (Runner: Java Application) then java service runs perfectly fine.

If, however, Acceleo project is executed as Acceleo Plug-in Application, it give ClassNotFoundException for the classes used in java service, from mylib.jar.

Am I missing something here?

Thanks
Anil
Re: [Acceleo 3] ClassNotFoundException if Runner is Acceleo Plug-in Application [message #654045 is a reply to message #652779] Sun, 13 February 2011 11:15 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

Has anyone else faced this issue, or is this expected behavior..?
I have been trying to get answer to this, but could not see any such existing question.

Thanks
Anil
Re: [Acceleo 3] ClassNotFoundException if Runner is Acceleo Plug-in Application [message #655316 is a reply to message #654045] Sat, 19 February 2011 06:47 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

I' think your jar is not in the runtime classpath.
For solve your problem, open the MANIFEST.MF go to the "Runtime" tab and add your mylib.jar reference to the "Classpath" list (right botom corner) .

You can also write directly in the manifest file by adding the following lines:
Bundle-ClassPath: .,
mylib.jar



Best regards
Re: [Acceleo 3] ClassNotFoundException if Runner is Acceleo Plug-in Application [message #655375 is a reply to message #655316] Sun, 20 February 2011 00:50 Go to previous message
Eclipse UserFriend
Thanks Philippe, for responding.

The step you suggested, resolves the problem.

Thanks again.

Anil
Previous Topic:Need some help to understand the process Papyrus => Acceleo => java code
Next Topic:[Acceleo3]Generating a C macro definition
Goto Forum:
  


Current Time: Sun May 11 10:24:50 EDT 2025

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

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

Back to the top