Re: Java on MacOSX

Stephan Bergmann <[email protected]>
Newsgroups gmane.comp.openoffice.devel.porting
Organization Sun Microsystems
Message-ID <[email protected]>
Florian Heckl wrote:
> Hi all,
> 
> java not working on MacOSX seems to be another naming problem. As you 
> might know, shared libraries on MacOSX have the suffix .dylib
> However for java to work, some of them have to have the suffix .jnilib 
> (also solved by ln -s libsomelib.dylib libsomelib.jnilib). Apparently we 
> need this for any lib that gets loaded from inside the JVM.
> 
> Does anyone have a list of which libraries are affected by that? This 
> would be great. (Trivial solution would of course be to create such a 
> link for every lib.)

Since most of our Java code should by now load native libraries through 
com.sun.star.lib.util.NativeLibraryLoader, a grep for 
"NativeLibraryLoader" across all *.java files in the CVS should reveal 
most, if not all, affected libraries:

   hsqldb2
   java_uno
   jpipe
   officebean

Also, there is

   juh

which is loaded by System.loadLibrary instead (for whatever reason).

Hope this helps,
-Stephan

> Best regards,
> Florian
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.