Which java version: confusion: SOLVED

Peggy Wilkins enlil65 at gmail.com
Sat Oct 6 15:53:14 UTC 2012


On Sat, Oct 6, 2012 at 10:29 AM, Peggy Wilkins <enlil65 at gmail.com> wrote:
> I have two java ports installed on several of my systems:
>
> % cat /usr/local/etc/javavms
> /usr/local/diablo-jdk1.6.0/bin/java # DiabloCaffe1.6.0
> /usr/local/jdk1.6.0/bin/java # FREEBSD-JDK1.6.0
>
> It seems that when I update of one of the versions, the version
> executed by default turns out to be "the latest version installed".
> For example, on one of my systems:
>
> % java -version
> openjdk version "1.6.0_32"
> OpenJDK Runtime Environment (build 1.6.0_32-b25)
> OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode)
>
> But after updating diablo-jdk-1.6.0.07.02_19 to
> diablo-jdk-1.6.0.07.02_20 I am now getting this instead:
>
> % java -version
> java version "1.6.0_07"
> Diablo Java(TM) SE Runtime Environment (build 1.6.0_07-b02)
> Diablo Java HotSpot(TM) 64-Bit Server VM (build 10.0-b23, mixed mode)
>
> I have not set $JAVA_HOME.  Am I required to set it in order to
> dependably get one version vs. the other by default?  Is there a way
> to set one of them to be preferred if JAVA_HOME isn't set?  I don't
> understand why simply updating one of the installed versions would
> result in a switch of which version is preferred.
>
> I assume I am simply clueless about something I'm supposed to know but don't...

I  withdraw this question now.  Reading the above more carefully, I
see that I am confusing two different systems and I misread that I had
openjdk installed when I obviously did not.  I absentmindedly pasted
output from the wrong system. That was the source of my confusion.

I apologize for wasting everyone's time with this public display of
cluelessness!


More information about the freebsd-ports mailing list