Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » How to reference classes in java project from plugin project
How to reference classes in java project from plugin project [message #466614] Mon, 23 April 2007 01:37 Go to next message
Eclipse UserFriend
Originally posted by: johan_susai.yahoo.com

I am new to RCP, i want to know how to reference a class/interface of a java project from a plugin project.
kindly help me.

Thanks,
Joe
Re: How to reference classes in java project from plugin project [message #466616 is a reply to message #466614] Mon, 23 April 2007 01:56 Go to previous messageGo to next message
Eclipse UserFriend
In the Projects tab of the Build path add the Java Project as a required project for the Plugin Project.
Re: How to reference classes in java project from plugin project [message #466617 is a reply to message #466616] Mon, 23 April 2007 03:03 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: johan_susai.yahoo.com

Prakash,
Thanks for your comments,i tried that n while Launching an application i m getting exception ie) org.osgi.framework.BundleException:The activator testlog.view for bundle is invalid.
help me out to solve this issue.

Thanks,
Joe
Re: How to reference classes in java project from plugin project [message #466628 is a reply to message #466617] Mon, 23 April 2007 07:06 Go to previous messageGo to next message
Eclipse UserFriend
Yeah, you shouldn't really do this -- you'll need to ensure that the .jar is on the plugin's Bundle-ClassPath as well. You would do that e.g. by shipping your Java project as thing.jar, and then putting thing.jar in the bundle-ClassPath header of the manifest.

If you put it on the ordinary Java .classpath, then you'll be able to compile against it but not run it, as you've found.

Alex.
Re: How to reference classes in java project from plugin project [message #466629 is a reply to message #466628] Mon, 23 April 2007 07:07 Go to previous messageGo to next message
Eclipse UserFriend
NB Why not make the ordinary Java project a plug-in project? It can still be used as an ordinary Jar for those projects that still need it.

Alex.
Re: How to reference classes in java project from plugin project [message #466633 is a reply to message #466614] Mon, 23 April 2007 10:06 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: lamont_gilbert.rigidsoftware.com

On Mon, 23 Apr 2007 01:37:10 -0400, joesusai wrote:

> I am new to RCP, i want to know how to reference a class/interface of a java project from a plugin project.
> kindly help me.
>
> Thanks,
> Joe

Your java project needs to export a jar file. That jar file should be
imported by your plugin project. Its going to be required if you ever
deploy that plugin.
Re: How to reference classes in java project from plugin project [message #466635 is a reply to message #466629] Mon, 23 April 2007 10:30 Go to previous message
Eclipse UserFriend
Originally posted by: javaloco.argentina.com

First you have to paste the plugin in "plugins" and "features" folders before configure build path
Previous Topic:Exported product does not include my own plugin's binaries
Next Topic:Palette.Label
Goto Forum:
  


Current Time: Sat May 17 03:00:39 EDT 2025

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

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

Back to the top