Kaydet (Commit) 02864717 authored tarafından Tor Lillqvist's avatar Tor Lillqvist

Look for Oracle Java 7 in a 64-bit LibreOffice on OS X

Change-Id: Ife3fc97c11ab5216df62aba92dc11ed6cf07c154
üst 2ecae4cd
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
<javaSelection xmlns="http://openoffice.org/2004/java/framework/1.0" <javaSelection xmlns="http://openoffice.org/2004/java/framework/1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<updated>2006-05-02</updated> <updated>2013-04-09</updated>
<vendorInfos> <vendorInfos>
<vendor name="Apple Computer, Inc."> <vendor name="Apple Computer, Inc.">
...@@ -29,8 +29,12 @@ ...@@ -29,8 +29,12 @@
<vendor name="Apple Inc."> <vendor name="Apple Inc.">
<minVersion>1.5.0</minVersion> <minVersion>1.5.0</minVersion>
</vendor> </vendor>
<vendor name="Oracle Corporation">
<minVersion>1.7.0</minVersion>
</vendor>
</vendorInfos> </vendorInfos>
<plugins> <plugins>
<library vendor="Oracle Corporation">vnd.sun.star.expand:$URE_INTERNAL_LIB_DIR/libsunjavaplugin.dylib</library>
<library vendor="Apple Inc.">vnd.sun.star.expand:$URE_INTERNAL_LIB_DIR/libsunjavaplugin.dylib</library> <library vendor="Apple Inc.">vnd.sun.star.expand:$URE_INTERNAL_LIB_DIR/libsunjavaplugin.dylib</library>
<library vendor="Apple Computer, Inc.">vnd.sun.star.expand:$URE_INTERNAL_LIB_DIR/libsunjavaplugin.dylib</library> <library vendor="Apple Computer, Inc.">vnd.sun.star.expand:$URE_INTERNAL_LIB_DIR/libsunjavaplugin.dylib</library>
</plugins> </plugins>
......
...@@ -59,6 +59,9 @@ char const* const* SunInfo::getRuntimePaths(int * size) ...@@ -59,6 +59,9 @@ char const* const* SunInfo::getRuntimePaths(int * size)
"/bin/classic/jvm.dll", "/bin/classic/jvm.dll",
// The 64-bit JRE has the jvm in bin/server // The 64-bit JRE has the jvm in bin/server
"/bin/server/jvm.dll" "/bin/server/jvm.dll"
#elif defined MACOSX && defined X86_64
// Oracle Java 7, under /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home
"/lib/server/libjvm.dylib"
#elif defined UNX #elif defined UNX
"/lib/" JFW_PLUGIN_ARCH "/client/libjvm.so", "/lib/" JFW_PLUGIN_ARCH "/client/libjvm.so",
"/lib/" JFW_PLUGIN_ARCH "/server/libjvm.so", "/lib/" JFW_PLUGIN_ARCH "/server/libjvm.so",
...@@ -71,12 +74,18 @@ char const* const* SunInfo::getRuntimePaths(int * size) ...@@ -71,12 +74,18 @@ char const* const* SunInfo::getRuntimePaths(int * size)
char const* const* SunInfo::getLibraryPaths(int* size) char const* const* SunInfo::getLibraryPaths(int* size)
{ {
#ifdef UNX #if defined UNX
static char const * ar[] = { static char const * ar[] = {
#if defined MACOSX && defined X86_64
// Oracle Java 7, under /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home
"/lib/server",
"/lib"
#else
"/lib/" JFW_PLUGIN_ARCH "/client", "/lib/" JFW_PLUGIN_ARCH "/client",
"/lib/" JFW_PLUGIN_ARCH "/server", "/lib/" JFW_PLUGIN_ARCH "/server",
"/lib/" JFW_PLUGIN_ARCH "/native_threads", "/lib/" JFW_PLUGIN_ARCH "/native_threads",
"/lib/" JFW_PLUGIN_ARCH "/lib/" JFW_PLUGIN_ARCH
#endif
}; };
*size = SAL_N_ELEMENTS(ar); *size = SAL_N_ELEMENTS(ar);
return ar; return ar;
......
...@@ -61,6 +61,7 @@ using ::rtl::Reference; ...@@ -61,6 +61,7 @@ using ::rtl::Reference;
#endif #endif
#ifdef UNX #ifdef UNX
#if !(defined MACOSX && defined X86_64)
namespace { namespace {
char const *g_arJavaNames[] = { char const *g_arJavaNames[] = {
"", "",
...@@ -113,6 +114,7 @@ char const *g_arSearchPaths[] = { ...@@ -113,6 +114,7 @@ char const *g_arSearchPaths[] = {
#endif #endif
}; };
} }
#endif
#endif // UNX #endif // UNX
namespace jfw_plugin namespace jfw_plugin
...@@ -1137,6 +1139,14 @@ void createJavaInfoDirScan(vector<rtl::Reference<VendorBase> >& vecInfos) ...@@ -1137,6 +1139,14 @@ void createJavaInfoDirScan(vector<rtl::Reference<VendorBase> >& vecInfos)
getJREInfoByPath("file:////usr/jdk/latest", vecInfos); getJREInfoByPath("file:////usr/jdk/latest", vecInfos);
} }
#elif defined MACOSX && defined X86_64
void createJavaInfoDirScan(vector<rtl::Reference<VendorBase> >& vecInfos)
{
// Oracle Java 7
getJREInfoByPath("file:///Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home", vecInfos);
}
#else #else
void createJavaInfoDirScan(vector<rtl::Reference<VendorBase> >& vecInfos) void createJavaInfoDirScan(vector<rtl::Reference<VendorBase> >& vecInfos)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment