Subject: JRE and OpenOffice part II
To: None <netbsd-help@NetBSD.org>
From: Al Urbaitis <avu@lanl.gov>
List: netbsd-help
Date: 10/18/2006 18:14:17
After rummaging around I came across a missive
from a FreeBSD luminary claiming to have "fixed"
java selection on FreeBSD but alas
no explanation as to what the fix was.

  /usr/pkg/java/sun*/bin/java -version
gives me ...
java version "1.5.0_07"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_07-b03)
Java HotSpot(TM) Client VM (build 1.5.0_07-b03, mixed mode, sharing)


There is a file ...
/usr/pkg/openoffice.org2.0/share/config/javavendors.xml

that looks like it is the criteria that openoffice is using to
determine the installed java environment.

but this doesn't seem to match up ....

<?xml version="1.0" encoding="UTF-8"?>

<javaSelection xmlns="http://openoffice.org/2004/java/framework/1.0"
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

  <updated>2004-01-30</updated>

  <vendorInfos>
   <vendor name="Sun Microsystems Inc.">
     <minVersion>1.3.1</minVersion>
   </vendor>
   <vendor name="IBM Corporation">
     <minVersion>1.3.1</minVersion>
     <maxVersion>1.4.2</maxVersion>
   </vendor>
   <vendor name="Blackdown Java-Linux Team">
     <minVersion>1.3.1</minVersion>
   </vendor>
   <vendor name="Free Software Foundation, Inc.">
     <minVersion>1.4.2</minVersion>
   </vendor>
   <vendor name="BEA Systems, Inc.">
     <minVersion>1.4.1</minVersion>
   </vendor>
  </vendorInfos>

  <plugins>
   <library vendor="Sun Microsystems Inc.">sunjavaplugin.so</library>
   <library vendor="IBM Corporation">sunjavaplugin.so</library>
   <library vendor="Blackdown Java-Linux Team">sunjavaplugin.so</library>
   <library vendor="Free Software Foundation, 
Inc.">sunjavaplugin.so</library>
   <library vendor="BEA Systems, Inc.">sunjavaplugin.so</library>
  </plugins>
</javaSelection>