Re: JNI and initialization of static C++ classes on Linux with JDK 1.3.1

2001-09-16 Thread Marcel Ruff
Matthias Pfisterer wrote: > Hi, > > a funktion void _init(void) is called on loading a shared library, if it > exists. See dlopen(3). This didn't help, i have reduced it to this example: InitTest.H --- class InitTest { public: static char * charName; public: static string strin

Re: JNI and initialization of static C++ classes on Linux with JDK 1.3.1

2001-09-16 Thread Matthias Pfisterer
Hi, a funktion void _init(void) is called on loading a shared library, if it exists. See dlopen(3). Matthias Marcel Ruff wrote: > > Hi, > > i am using Linux 2.4.4-4 with JDK 1.3.1 > > I want to call one method in a native, shared C++ library from > Java, using JNI. > > The C++ .so lib depe

JNI and initialization of static C++ classes on Linux with JDK 1.3.1

2001-09-15 Thread Marcel Ruff
Hi, i am using Linux 2.4.4-4 with JDK 1.3.1 I want to call one method in a native, shared C++ library from Java, using JNI. The C++ .so lib depends on other .so libs which have many C++ classes which are usually initialized automatically on startup before the main() method (if i invoke the old