This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
Tom Tromey wrote:
With the current gcj, a given compiled class can only be loaded once by the system class loader. If you try to link in a class more than once, you get this failure.
This choice was the result of a lot of discussion a few years ago, see the list archives for the details. (I don't have a ready pointer to the thread, sorry.)
I found that the problem is Apache is calling dlopen() twice for each shared module. This is done on purpose to let modules set up their logs files or whatever. So I guess the only solution is to put the Java classes in a separate library and load that manually from my module. Unless there is a way to "forget" about the classes loaded in the first dlopen() pass, but I somehow doubt this.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |