Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse RT (runtime) » Issue accesing a JAR file inside a plugin
icon9.gif  Issue accesing a JAR file inside a plugin [message #661283] Wed, 23 March 2011 21:29
Yigal Spinner is currently offline Yigal SpinnerFriend
Messages: 102
Registered: July 2009
Senior Member
I wanted to create a plugin for a logging manager based on the example from IBM (http://www.ibm.com/developerworks/library/os-eclog/)

I created my base plugin in Eclipse 3.5.2 added the log4j-1.2.15.jar to the plugin and exported all the packages.
In the manifest I added:
Eclipse-BuddyPolicy: registered
Bundle-ClassPath: lib/log4j-1.2.15.jar

In the same workspace I create a test plugin and it works fine with no issues (ie the test plugin can reference the log4j Logger that is exported by the base plugin).

Next step, I exported the base plugin as "Deployable Plug-ins" and put it in the Eclipse plugin directory.

The test plugin can see the new base JAR file but fails to see log4j Logger that was exported from the base project.

Why does it work in the same work space and not as a JAR file?
What am I missing?
Previous Topic:http preview server error on launch
Next Topic:Classloading: Unable to load class of a dependent plugin from a java project
Goto Forum:
  


Current Time: Sun Dec 21 22:16:17 GMT 2014

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

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