c++ -> JNI on a SuSe Linux - Can't seem to find my Java files
Hi all,
I have been playing around with the JNI for a bit now on my windows box and got it working fine and all :) Now, however, I need to port my stuff to a SuSe linux, and I have started out really basic - just trying to start the JVM too see how that went... badly, would be the answer to that question, in case you were wondering.
I made a really simple textbook example (alot of those, when searching this forum - and searched, I have) to just create myself a JVM. I am not even daring to actually try and find any classes, call methods or anything as bold as that yet.
My example compiles fine, but when I run the program I get this error message:
"Can't find class java.lang.NoClassDefFoundError. Invalid class path ?"
Now, please note, this is not the actual NoClassDefFoundError exception being thrown here, but looks to me as if the system wanted to throw that exception object, but couldn't even find the object to throw at me ;-)
This leads me to believe that there's is something *really basic* wrong with my Java setup here. I can run "java" just fine from the commandline, but it occurs to me, that the JVM, when invoked via the JNI, can't find it's own stuff.
Any suggestion what needs to be done here?
I can post code if that helps, but I doubt that is the problem - as it is really textbook stuff and I can get this stuff to work on Windows. I think the problem is "external" to my code, as it happens before I even try to use the JVM. Maybe some env vars needs to be set? I have manually tried to export a CLASSPATH variable, just to see if that helped - I even tried adding full path to core.jar in my "-Djava.class.path" property ;-)
I have tried removing and adding the Java RPM's again (Java version 1.4.1 FYI) to no avail aswell.

