Using external classes in my jpf-project

23 views
Skip to first unread message

Manuel Bravo

unread,
May 15, 2013, 4:03:42 PM5/15/13
to java-pa...@googlegroups.com
Hi everyone,

I am trying to use some classes of a different project in one of my listeners. Let's say my project it is called jpf-mine and it has a listener that is is called myListener. This listener tries to use a class of a different project (unrelated to jpf). It compiles since I add that external project to the build path of jpf-mine in eclipse, but I get NotClassDefFoundError when executing it. I tried to add to the class path the path of the external project, but it is still giving me the error...

The only way I am able to solve it, it is by copying the classes I need into my jpf project. Nevertheless, I cannot because those classes are also used by other unrelated projects.

Can anyone help me? I think it should be easy to solve.

Best,
Manuel

Peter Mehlitz

unread,
May 15, 2013, 4:44:58 PM5/15/13
to java-pa...@googlegroups.com
your jpf-mine/jpf.properties has to include your external classes in its 'jpf-mine.native_classpath'. If you want your project to be self-contained, you can copy the external jar under jpf-mine/lib

-- Peter

Manuel Bravo

unread,
May 15, 2013, 5:06:17 PM5/15/13
to java-pa...@googlegroups.com
Thank you for the quick reply. It perfectly works.

Best,
Manuel
Reply all
Reply to author
Forward
0 new messages