I am not sure if this is a C question or java. Anyhow I have been reading the tutorial at
and I have followed it exactly except I had to make a minor change to the cc command as noted below.
Anyhow I compile all the java code and then the C code but when I run it I get the following.
heracles 56% java Main
va: rld: Fatal Error: cannot successfully map soname 'libhello.so' under any of the filenames /usr/people/mv135329/java/
rror: no hello in shared library path
according to the tutorial (step 6) I need set the library path, I did that and that had no effect. You can see in the error message that that it is looking in the correct directory '...java/native' for the library called libhello.so. This file is in that directory. So this makes me wonder if I am creating the library wrong?? Here is the command I am using to do it with
'cc -I/usr/java/include -I/usr/java/include HelloWorldImp.c -o libhello.so -c'
I had to change it a bit from the tutorial. No matter what I seem to do I always get this message. I am assuming I am not creating the library properly. If this is the case this might be a question for the C experts, but I am not sure.