Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community Forumsplugin project that references a java project, running junit plugin class def not found problems
https://www.eclipse.org/forums/index.php/mv/msg/12518/39150/#msg_39150
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.]]>Mike Boyersmith2005-11-03T18:37:28-00:00Re: plugin project that references a java project, running junit plugin class def not found problems
https://www.eclipse.org/forums/index.php/mv/msg/12518/39242/#msg_39242
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.]]>Marius Slavescu2005-11-03T21:31:54-00:00