Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » external jar
external jar [message #50639] Thu, 05 June 2003 12:44 Go to next message
Eclipse UserFriend
Originally posted by: jzhou.persistence.com

Does anyone know if there is a way to programatically load classes in an
external jar using the current project's classloader at runtime?

Thanks,

Jie
Re: external jar [message #50801 is a reply to message #50639] Thu, 05 June 2003 14:02 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.NOSPAM.us.ibm.com

Go to the popup menu on the project and select properties.
From there goto Java Build Path, go to the Libraries page,
go to "Add External Jars..." button and select your jar.

Rich
Re: external jar [message #51350 is a reply to message #50801] Fri, 06 June 2003 04:52 Go to previous message
Eclipse UserFriend
Hi there,

> Go to the popup menu on the project and select properties.
> From there goto Java Build Path, go to the Libraries page,
> go to "Add External Jars..." button and select your jar.

Well he/she talked about 'at runtime'. Maybe there is
some dynamic behaviour wished.

Well there is another way (I know worked for Applets).
As far as I remember, you can load the jar as a resource.
Then you can use the classes by getting the Class instance
by name (forName i think) and get instances by
create/get/newInstance (not sure which one and to lazy
to look at;)

Hope that works for applications too.


Bye

Martin

PS: If you gonna debug some dynamic code just point
a source to it. (debugger dialog i think)
Previous Topic:incremental project builder not compiling
Next Topic:Closing bracket
Goto Forum:
  


Current Time: Tue Apr 29 01:26:43 EDT 2025

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

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

Back to the top