Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Test and Performance Tools Platform (TPTP) » plugin project that references a java project, running junit plugin class def not found problems
plugin project that references a java project, running junit plugin class def not found problems [message #39150] Thu, 03 November 2005 18:37 Go to next message
Mike Boyersmith is currently offline Mike BoyersmithFriend
Messages: 143
Registered: July 2009
Senior Member
I have a plugin project that references a java project.
I want to test the plugin via a junit 'plugin' test.
the problem is that when I go to run my junit plugin test, my java
project code isn't found. Class def not found errors...uggg.

So..... any idea how to solve this problem?


note I want to debug and I want to change code often so exporting my jar
to the plugin project isn't a good solution.

Thanks for any ideas or help here.
Re: plugin project that references a java project, running junit plugin class def not found problems [message #39242 is a reply to message #39150] Thu, 03 November 2005 21:31 Go to previous message
Marius Slavescu is currently offline Marius SlavescuFriend
Messages: 67
Registered: July 2009
Member
Hi Mike,

Here are some hints (project A is the plugin project, project B is the Java
project):

- if you refer a project B from project A you will be able to compile
the code, but the plugin classloader won't find the classes from project B
at runtime, you should avoid the direct modification of the classpath on a
plugin project, always use PDE Tools -> Update Classpath action to update it
after you change the plugin.xml or MANIFEST.MF file.

- I would suggest converting the project B to a plugin project and add
it to the required plugins list of project A, make sure you export all the
Java packages in project B that you'll need in project A.

Regards,
Marius

"Mike Boyersmith" <mjboyers@us.ibm.com> wrote in message
news:dkdld8$1mi$3@news.eclipse.org...
> I have a plugin project that references a java project.
> I want to test the plugin via a junit 'plugin' test.
> the problem is that when I go to run my junit plugin test, my java
> project code isn't found. Class def not found errors...uggg.
>
> So..... any idea how to solve this problem?
>
>
> note I want to debug and I want to change code often so exporting my jar
> to the plugin project isn't a good solution.
>
> Thanks for any ideas or help here.
Previous Topic:wrong reported execution statistics times?
Next Topic:exception with dynamic class loading
Goto Forum:
  


Current Time: Thu Apr 25 14:35:03 GMT 2024

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

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

Back to the top