external jar - nullpointerexception [message #278350] |
Wed, 29 December 2004 19:50 ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: brendan.moorehead.gmail.com
i cannot get any external jars to work with any plugin i create
what are the steps for including these jars as libraries
i can get the jar to work with a java application
but within a function in a plugin
i get an unhandled event loop exception
reason:
java.lang.nullpointerexception
the jars i want to include are for simpleDB -
http://www.luc.ac.be/~gjb/simpleDB/
i have tried even with my own one simple function jars but it doesn't work
so it is something basic i am doind wrong
any help or step by step guide appreciated
i have gone to java build path and added the jars there already
and eclipse can find them, but always produces errors when calling
functions
within them
|
|
|
Re: external jar - nullpointerexception [message #278379 is a reply to message #278350] |
Thu, 30 December 2004 20:26 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: bkiran123.yahoo.com
Brendan Moorehead wrote:
> i cannot get any external jars to work with any plugin i create
> what are the steps for including these jars as libraries
> i can get the jar to work with a java application
> but within a function in a plugin
> i get an unhandled event loop exception
> reason:
> java.lang.nullpointerexception
> the jars i want to include are for simpleDB -
> http://www.luc.ac.be/~gjb/simpleDB/
> i have tried even with my own one simple function jars but it doesn't work
> so it is something basic i am doind wrong
> any help or step by step guide appreciated
> i have gone to java build path and added the jars there already
> and eclipse can find them, but always produces errors when calling
> functions
> within them
In the build.properties file of your plugin project you can specify to
include the external jars.
example is below, where external.jar file is your jar file and it should
be on the root folder of your project. Modify the path accordingly if you
place your jar at any other place. I found this solution trick by trial
and error.
bin.includes = plugin.xml,\
external.jar,\
icons/
|
|
|
Powered by
FUDForum. Page generated in 0.03386 seconds