Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » external jar - nullpointerexception
external jar - nullpointerexception [message #278350] Wed, 29 December 2004 19:50 Go to next message
Eclipse UserFriend
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
Eclipse UserFriend
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/
Previous Topic:Opening a file/resource from my custom view
Next Topic:Plugin class loader problem
Goto Forum:
  


Current Time: Mon Jul 08 14:27:01 GMT 2024

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

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

Back to the top