Re: Dynamically load laf
On Mon, 28 Nov 2005 07:01:49 GMT, Daniel
<daik.no-spam@xxxxxxxxxxxxxxxxx> wrote, quoted or indirectly quoted
someone who said :
>Thus I would add that directory to my classpath and all would be
>peaches. Well not quite. It seems this is not really working. So I
>wrote my own classloader trying to solve this problem. But my
>classLoader does not seem to work.
You only need to resort to a classloader when you don't know at
jar-create time where the classes will becoming from.
I think you will find it easier to use the internal jar Class-Path
entry to point at a directory or jars where your lafs live.
--
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
.
Relevant Pages
- Re: wie kriege ich einen anderen classloader?
... Ich habe ein Programm, das über Classloader auf nicht zum Programm ... Klassen jedoch nicht. ... Du willst mit einem ClassLaoder klassen laden, die in CLASSPATH sind, aber willst das nicht über den normalen ClassLoader machen.. ... (de.comp.lang.java) - Re: Why cant CLASSPATH be set on the fly
... security isn't the primary reason you're not allowed to change ... The primary reason is that changing the classpath ... But as the original op stated, I am creating a ClassLoader, ... (comp.lang.java.programmer) - Re: changing the classpath at runtime in code
... The reason for wanting to try is URLClassLoader will not physically ... reread a class file if it is in the classpath. ... If the class get loaded by the parent classloader because it is ... You'll end up writing this program for clients who want to be able to bounce a network signal off the moon for some reason. ... (comp.lang.java.programmer) - Re: changing the classpath at runtime in code
... The reason for wanting to try is URLClassLoader will not physically ... reread a class file if it is in the classpath. ... If the class get loaded by the parent classloader because it is ... (comp.lang.java.programmer) - Re: dynamically change the classpath
... that's guaranteed to work) change the system classpath. ... the same ClassLoader as X, ... reason that you can't just use URLClassLoader instead. ... A stub that discovers, at runtime, where to find all the necessary ... (comp.lang.java.programmer) |
|