Re: loadLib / loadLibrary problems
David Bélanger <[email protected]>
| Newsgroups | gmane.comp.java.vm.sablevm.devel |
|---|---|
| Message-ID | <[email protected]> |
On Fri, Oct 15, 2004 at 04:56:11PM +0200, Gerrit P. Haase wrote: > 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. > Hi, VMSystem.mapLibraryName (native method implemented in java_lang_VMSystem.c) puts: "lib" + libname together. The extension is handled by using: lt_dlopenext to open the lib. This supposely adds the platform specific extension. The lt_dlopenext call is located in file java_lang_VMRuntime.c. NB: The native VMSystem.mapLibraryName is actually no longer necessary as the concatenation: "lib" + libname can be done in Java... unless on some platforms Classpath native libs do not start with "lib"? > > 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. > Add a printf or temporarily hard coded at the lt_dlopenext call site. David --- David Bélanger Web page: http://www.cs.mcgill.ca/~dbelan2/ Public key: http://www.cs.mcgill.ca/~dbelan2/public_key.txt