To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=111555
                 Issue #|111555
                 Summary|SDK: Mac OS 10.6: Java examples do not run
               Component|sdk
                 Version|OOO320m16
                Platform|All
                     URL|
              OS/Version|Mac OS X, all
                  Status|NEW
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|DEFECT
                Priority|P3
            Subcomponent|samples
             Assigned to|jsc
             Reported by|kso





------- Additional comments from k...@openoffice.org Wed May 12 11:43:01 +0000 
2010 -------
Mac OS 10.6 (Snow Leopard) comes with a 64 bit JRE (this is different from
previous Mac OS X versions). Thus, invocation of "java" by default initializes a
64 bit JRE. Any native library used by this environment must be 64 bit. Java UNO
simple bootstrap uses a pipe urp connection, which relies on the native URE
library libjpipe.dylib. This lib, like all other URE libs is only available as
32 bit binary. Therefore, JRE is unable to load the lib and the pipe connection
to the office cannot be established. 

============================================
[macbookpro-kso:examples/java/DocumentHandling] ks93798% make 
DocumentConverter.run
mkdir -p
/Users/ks93798/OpenOffice.org3.2_SDK/MACOSXexample.out/misc/JavaDocumentHandlingExamples/converted_files
"/System/Library/Frameworks/JavaVM.Framework/Versions/1.6.0/Commands/java"
-Dcom.sun.star.lib.loader.unopath="/Applications/Oracle Open
Office.app/Contents/MacOS" -jar
/Users/ks93798/OpenOffice.org3.2_SDK/MACOSXexample.out/class/JavaDocumentHandlingExamples/DocumentConverter.jar
"./test" "MS Word 97" "doc"
"/Users/ks93798/OpenOffice.org3.2_SDK/MACOSXexample.out/misc/JavaDocumentHandlingExamples/converted_files"
Exception in thread "main" java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at com.sun.star.lib.loader.Loader.main(Loader.java:138)
Caused by: java.lang.UnsatisfiedLinkError:
com.sun.star.lib.connections.pipe.PipeConnection.createJNI(Ljava/lang/String;)I
        at com.sun.star.lib.connections.pipe.PipeConnection.createJNI(Native 
Method)
        at 
com.sun.star.lib.connections.pipe.PipeConnection.<init>(PipeConnection.java:125)
        at 
com.sun.star.lib.connections.pipe.pipeConnector.connect(pipeConnector.java:134)
        at com.sun.star.comp.connections.Connector.connect(Connector.java:138)
        at
com.sun.star.comp.urlresolver.UrlResolver$_UrlResolver.resolve(UrlResolver.java:120)
        at com.sun.star.comp.helper.Bootstrap.bootstrap(Bootstrap.java:282)
        at DocumentConverter.main(DocumentConverter.java:188)
        ... 5 more
============================================

Solution is to enforce 32 bit JRE, for instance by using the "-d32" switch when
invoking java. This holds true not just for Mac OS 10.6. This switch is
available on Mac, Linux and Solaris, but not on Windows!  Refer to
http://java.sun.com/javase/6/docs/technotes/guides/vm/index.html for details for
Standard HotSpot VM Options.

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@api.openoffice.org
For additional commands, e-mail: issues-h...@api.openoffice.org


---------------------------------------------------------------------
To unsubscribe, e-mail: allbugs-unsubscr...@openoffice.org
For additional commands, e-mail: allbugs-h...@openoffice.org

Reply via email to