summaryrefslogtreecommitdiff
path: root/jvmfwk/plugins
diff options
context:
space:
mode:
authorRüdiger Timm <rt@openoffice.org>2005-01-31 08:49:56 +0000
committerRüdiger Timm <rt@openoffice.org>2005-01-31 08:49:56 +0000
commiteae9fc3fa1663e990d3ace1b76ff3676c937ab59 (patch)
tree6200df86a804eb7538e2e42a838695f4a421f253 /jvmfwk/plugins
parent98d2873b694968e489e2cc2cbd7fe69ddfaba532 (diff)
INTEGRATION: CWS jre5issues (1.2.26); FILE MERGED
2005/01/14 10:11:42 jl 1.2.26.1: #i39912# #i40180# fixes for MAC, FREEBSD
Diffstat (limited to 'jvmfwk/plugins')
-rw-r--r--jvmfwk/plugins/sunmajor/pluginlib/otherjre.cxx19
1 files changed, 13 insertions, 6 deletions
diff --git a/jvmfwk/plugins/sunmajor/pluginlib/otherjre.cxx b/jvmfwk/plugins/sunmajor/pluginlib/otherjre.cxx
index e595082cda28..f1585a44beb7 100644
--- a/jvmfwk/plugins/sunmajor/pluginlib/otherjre.cxx
+++ b/jvmfwk/plugins/sunmajor/pluginlib/otherjre.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: otherjre.cxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: hr $ $Date: 2004-07-23 11:51:14 $
+ * last change: $Author: rt $ $Date: 2005-01-31 09:49:56 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -74,6 +74,7 @@ Reference<VendorBase> OtherInfo::createInstance()
return new OtherInfo;
}
+
char const* const* OtherInfo::getJavaExePaths(int * size)
{
static char const * ar[] = {
@@ -97,9 +98,13 @@ char const* const* OtherInfo::getRuntimePaths(int * size)
"/bin/hotspot/jvm.dll",
"/bin/classic/jvm.dll"
#elif UNX
+#ifdef MACOSX
+ "/../../../JavaVM"
+#else
"/lib/" JFW_PLUGIN_ARCH "/client/libjvm.so",
"/lib/" JFW_PLUGIN_ARCH "/classic/libjvm.so"
#endif
+#endif
};
*size = sizeof(ar) / sizeof (char*);
@@ -111,6 +116,10 @@ char const* const* OtherInfo::getLibraryPaths(int* size)
#ifdef UNX
static char const * ar[] = {
+#ifdef MACOX
+ "/../Libraries",
+ "/lib"
+#else
#if defined(LINUX) && defined(POWERPC)
"/lib/" JFW_PLUGIN_ARCH "/client",
"/lib/" JFW_PLUGIN_ARCH "/classic",
@@ -121,6 +130,7 @@ char const* const* OtherInfo::getLibraryPaths(int* size)
"/lib/" JFW_PLUGIN_ARCH "/native_threads",
"/lib/" JFW_PLUGIN_ARCH
#endif
+#endif
};
*size = sizeof(ar) / sizeof (char*);
@@ -132,10 +142,7 @@ char const* const* OtherInfo::getLibraryPaths(int* size)
int OtherInfo::compareVersions(const rtl::OUString& sSecond) const
{
- //Need to provide an own algorithm for comparing version. Or
- //do not override compareVersions and rely on the implementation
- //in VendorBase::compareVersion. However, it will throw a MalformedVersionException
- //if the version string does not correspond to SUN version strings.
+ //Need to provide an own algorithm for comparing version.
//Because this function returns always 0, which means the version of
//this JRE and the provided version "sSecond" are equal, one cannot put
//any excludeVersion entries in the javavendors.xml file.