R
Roedy Green
When I first encountered Java, I was very excited about the notion
of interfaces and dynamic loading. I thought it would let people plug
in their own code to every conceivable utility.
There are two catches.
1. arranging that java.exe will look for your dynamic class in the
place where it is. It will not usually be bundled in the original
jar.
2. arranging that java.exe will look for any auxiliary classes your
plugin needs in the place where they live.
A garden variety jar prevents java from looking anywhere else for
classes.
I thought I would write a short essay on this. What techniques are
available?
I have always skirted the problem by putting all classes in the
original jar.
of interfaces and dynamic loading. I thought it would let people plug
in their own code to every conceivable utility.
There are two catches.
1. arranging that java.exe will look for your dynamic class in the
place where it is. It will not usually be bundled in the original
jar.
2. arranging that java.exe will look for any auxiliary classes your
plugin needs in the place where they live.
A garden variety jar prevents java from looking anywhere else for
classes.
I thought I would write a short essay on this. What techniques are
available?
I have always skirted the problem by putting all classes in the
original jar.