Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 17:02 Go to next message
Anil Bhatia is currently offline Anil BhatiaFriend
Messages: 23
Registered: February 2011
Junior Member
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 16:15 Go to previous messageGo to next message
Anil Bhatia is currently offline Anil BhatiaFriend
Messages: 23
Registered: February 2011
Junior Member
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 11:47 Go to previous messageGo to next message
Philippe Palau is currently offline Philippe PalauFriend
Messages: 13
Registered: February 2011
Junior Member
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 05:50 Go to previous message
Anil Bhatia is currently offline Anil BhatiaFriend
Messages: 23
Registered: February 2011
Junior Member
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: Fri Apr 19 13:14:46 GMT 2024

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

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

Back to the top