Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » ClassLoader for a JavaProject
ClassLoader for a JavaProject [message #83437] Wed, 06 August 2003 12:10 Go to next message
Eclipse UserFriend
Originally posted by: ajack__nospam__.openbiz.biz

I need to run some code leveraging a JavaProject's classloader, I guess
similar to compiling. Is there such a concept of "a classloader for a
JavaProject" or are classloaders constructed (using JavaProjects classpath)
for such tasks? Can I access the classloader (Some magic
JavaRuntime.getClassLoader(JavaProject) or something) and/or can I get the
project to construct me one, or .... ?????

Thanks in advance.

regards

Adam
Re: ClassLoader for a JavaProject [message #83506 is a reply to message #83437] Wed, 06 August 2003 15:53 Go to previous message
Eclipse UserFriend
Originally posted by: richkulp.NOSPAM.us.ibm.com

There is no classloader for a project. The compiler doesn't load any
classes from the project. It looks into them to find the shape of
classes, methods available, etc. It doesn't ever actually load them.

However, see:

http://eclipsewiki.swiki.net/114#augmentedClasspath2

This doesn't explain how to get the classpath though. That is left as an
exercise to the reader. :-)

Rich
Previous Topic:Crash in Vm.
Next Topic:Attempt on extending a Java editor
Goto Forum:
  


Current Time: Sat Jul 12 04:36:54 EDT 2025

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

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

Back to the top