Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Plugin project referencing to Java project
Plugin project referencing to Java project [message #302345] Wed, 19 April 2006 10:47 Go to next message
Eclipse UserFriend
Originally posted by: k.wigboldus.wisdom.nl

I have 2 Eclipse projects:

Project 1 is a normal Java project and should have a jar file as output
Project 2 is a Plugin project and should use the jar file (as library?)

I added a project reference from project 2 to project 1. I can compile
project 2.
However when running or debugging project 2 it can't find the classes of
project 1.
How can I solve this? I prefer a solution without making a jar file
manually each time. Within the team have installed eclipse on different
locations, so I can use only relative paths
Re: Plugin project referencing to Java project [message #302355 is a reply to message #302345] Wed, 19 April 2006 11:19 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

It doesn't work that way with plugins. You only reference other plugins,
not jars in another project.

Kor wrote:
>
> I have 2 Eclipse projects:
>
> Project 1 is a normal Java project and should have a jar file as output
> Project 2 is a Plugin project and should use the jar file (as library?)
>
> I added a project reference from project 2 to project 1. I can compile
> project 2.
> However when running or debugging project 2 it can't find the classes of
> project 1.
> How can I solve this? I prefer a solution without making a jar file
> manually each time. Within the team have installed eclipse on different
> locations, so I can use only relative paths
>
>
>
>

--
Thanks,
Rich Kulp
Re: Plugin project referencing to Java project [message #302370 is a reply to message #302345] Wed, 19 April 2006 13:29 Go to previous message
Eclipse UserFriend
Like Rich mentioned, if you want it on the classpath you gotta be in a
plugin.

So turn it from a java project into a plugin project (it would still be
a java project). Then you can use it in your workspace for plugins, but
when you export it as a jar for a java app it'll work fine like that as
well.

Later,
PW
Previous Topic:possible to have view with multiple categories in 3.2?
Next Topic:Automate Build Process
Goto Forum:
  


Current Time: Thu Jul 24 06:16:50 EDT 2025

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

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

Back to the top