Re: loadLib / loadLibrary problems

"Gerrit P. Haase" <[email protected]>
Newsgroups gmane.comp.java.vm.sablevm.devel
Organization Esse keine toten Tiere
Message-ID <[email protected]>
Gerrit schrieb:

> Hello,

> I cannot get sablevm to run, there is only little error message:

> java/lang/UnsatisfiedLinkError

> I tried to find in the sources where loadLib is actually executed, but I
> cannot find the place where the actual wanted libname / filename is put
> together.

> I guess it is a problem that the DLLs are named cyg....dll instead of
> lib...so or s.th. similar.

It seems this change is relevant:
r1384 | belanger | 2004-01-16 19:56:25 -0500 (Fri, 16 Jan 2004) | 8 lines
Changed paths:
   M /sablevm-classpath/branches/staging/java/lang/System.java
   M /sablevm-classpath/branches/staging/vm/reference/java/lang/ProcessImpl.java
   M /sablevm-classpath/branches/staging/vm/reference/java/lang/Runtime.java
   M /sablevm-classpath/branches/staging/vm/reference/java/lang/VMSystem.java

* Merged: svn merge -r 1346:1378
  /developers/belanger/sandbox/sablevm-classpath
* Fixed: Replaced hard coded system dependent native library name 
         computation (i.e "lib" + name + ".so") with call to
         System.mapLibraryName().
* Implemented ProcessImpl.destroy().
* Finished implementing waitFor() and exitValue() of ProcessImpl.


However, it doesn;t work.
I would prefer it hardcoded so I could write the actual name of the file
searched into the source and thats it.

I found the mapLibraryName Call in VMRuntime.java, however it is
commented.  How is thought should this work?


Gerrit
-- 
=^..^=
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.