Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » classpath for runtime workbench
classpath for runtime workbench [message #200263] Tue, 05 April 2005 13:06 Go to next message
Eclipse UserFriend
Originally posted by: terry.chan.embarcadero.com

Hello,

I have a piece of code that needs to make reference to an external
directory on the file system (for example d:\\temp). So in Eclipse I
create a Java run configuration, then add d:\temp in the classpath tab of
the configuration, and this works just fine.

However, I don't know how to run the same piece of code when it's part of
a plug-in in a plug-in project. An "Eclipse Application" configuration
doesn't have a classpath tab so I can't add d:\temp. Please help.

THanks

Terry
Re: classpath for runtime workbench [message #200288 is a reply to message #200263] Tue, 05 April 2005 15:10 Go to previous message
Eclipse UserFriend
Originally posted by: wharley.bea.com

"terryc" <terry.chan@embarcadero.com> wrote in message
news:cd693489f9c43cd56759e2f33eb207a5$1@www.eclipse.org...
> Hello,
>
> I have a piece of code that needs to make reference to an external
> directory on the file system (for example d:\\temp). So in Eclipse I
> create a Java run configuration, then add d:\temp in the classpath tab of
> the configuration, and this works just fine.
> However, I don't know how to run the same piece of code when it's part of
> a plug-in in a plug-in project. An "Eclipse Application" configuration
> doesn't have a classpath tab so I can't add d:\temp. Please help.


This surely gets my vote for "Most Frequently Asked Question about Plugins,"
or at least most annoying feature!

Here's my current understanding, but I'm new at this too:

A plugin's classpath is STRICTLY determined by its plugin dependency
hierarchy. The default loader for the plugin sees ONLY those classes
exposed by the plugins it depends on. There is no way to add to this
classpath. If you want to load other classes, you need to create your own
classloader (parented by the plugin's default loader, generally) and load
them manually.

I saw a patch go by recently (see bug 87775, IIRC) suggesting this may be
changing somewhat. I still haven't delved into the details of that change
yet; but barring that, what I just said seems to be true.

-Walter Harley
BEA Systems, Inc.
Previous Topic:Compiler Performance / Distributed Compilation
Next Topic:How to build JSR 168 portlets?
Goto Forum:
  


Current Time: Mon Apr 28 00:03:38 EDT 2025

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

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

Back to the top