To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=88987





------- Additional comments from [EMAIL PROTECTED] Wed May 14 22:31:50 +0000 
2008 -------
I think I figured out what is happening. (thanks loria for pushing me into that
direction)

Contrary to other OS, there is one single VM creator on Mac OSX. There is only
the /System/Library/Frameworks/JavaVM.framework/Version/A/JavaVM that is used to
create VMs of all the installed JREs. (On linux, each JRE comes with a libjvm.so
that is used to create the VM).
see also http://developer.apple.com/samplecode/simpleJavaLauncher/listing2.html

The problem now is that OOo requests a VM with vm_args.version= JNI_VERSION_1_2
And thus Apple's JavaVM will create that one - the 1.3 version fits that
requirement. When setting DYLD_LIBRARY_PATH that selection is effectively
overridden again, it requests the libs from 1.3 directory, but gets them from
the ones in DYLD_LIBRARY_PATH)

So what OOo detects/shows in Tools|Options, and what javaldx reports is not
taken into account at all/has no effect when creating the java-environment.

A workaround is to increase that version to 1_4 (at least for Mac, maybe
globally, is 1.3 java really still supported?)

It is a workaround, since the selection in Tools|OOo → Java doesn't reflect the
VM that is created, but should be good enough for the short timeframe to 3.0

That change should do the trick: 
--- jvmfwk/plugins/sunmajor/pluginlib/sunjavaplugin.cxx        11 Apr 2008
10:21:55 -0000      1.25
+++ jvmfwk/plugins/sunmajor/pluginlib/sunjavaplugin.cxx        14 May 2008
22:29:13 -0000
@@ -572,7 +572,7 @@
 #endif
     }
     
-    vm_args.version= JNI_VERSION_1_2;
+    vm_args.version= JNI_VERSION_1_4;
     vm_args.options= options;
     vm_args.nOptions= cOptions + 1;
     vm_args.ignoreUnrecognized= JNI_TRUE;

---------------------------------------------------------------------
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to