Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Problem creating plugin with external jar dependency
Problem creating plugin with external jar dependency [message #513587] Wed, 10 February 2010 11:05
Eclipse UserFriend
Hi,
I'm trying to create Eclipse plugin, which uses Commons Configuration classes. I have downloaded most recent commons-configuration.jar and commons-lang.jar (classes from commons-configuration.jar depends on classes from this jar).
I have tried two ways:
1. I have created new Eclipse plugin project from "Hello world, command" template - pr1, created new directory lib in the root folder of the project and moved both jar files there. In the Runtime tab I have added ./lib/commons-configuration.jar and ./lib/commons-lang.jar to the classpath. In the Build tab, I have checked the lib folder to be included in the binary build. To test if this works, I have added new line to the SampleHandler's execute method,

public Object execute(ExecutionEvent event) throws ExecutionException{
SystemConfiguration conf = new SystemConfiguration();
. . .


After running the project as Eclipse Application and clicking on the Sample menu item, nothing happens. In debugging mode, the execution of the execute method terminates on the first line. After commenting out the first line, everything works fine.

2. I have created Eclipse plugin project pr1 from existing jar, using commons-configuration.jar and commons-lang.jar, checked if the desired packages are exported by the plugin on the Runtime tab.
Then I created another project pr2 from "Hello world, command" template. Then I have added pr1 to the Required plugins of pr2 on the Dependencies tab.

And tested pr2 like above, with the same results.


Can you, please, tell me, what am I doing wrong? Thank you for your answers.

[Updated on: Wed, 10 February 2010 16:42] by Moderator

Previous Topic:Specifying JRE home
Next Topic:Bind Ant task to keystroke
Goto Forum:
  


Current Time: Fri Mar 28 05:57:43 EDT 2025

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

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

Back to the top