Multiple Java versions

Andrea Venturoli ml at netfence.it
Wed Sep 25 07:36:29 UTC 2013


On 09/25/13 09:23, Achilleas Mantzios wrote:

>> Sorry for being so dumb, but I don't understand this...
>> I though I was using javavmwrapper... what do you mean?
>>
>
> You can verify this by doing a
> % which java
> if this turns out : /usr/local/bin/java
> then
> ls -l /usr/local/bin/java
> lrwxr-xr-x 1 root wheel 21 14 Ιον 10:54 /usr/local/bin/java ->
> /usr/local/bin/javavm
>
> pkg which /usr/local/bin/javavm
> /usr/local/bin/javavm was installed by package javavmwrapper-2.4_3
>
> then you are sure you are using javavmwrapper
>
> But, despite this, still the code governing what will be run in the
> default case is still : /usr/ports/Mk/bsd.java.mk
>
> In my system : 9.1-RELEASE-p3, and despite not setting JAVA_HOME, and
> having
> cat /usr/local/etc/javavms
> /usr/local/openjdk7/bin/java # OpenJDK7
> /usr/local/openjdk6/bin/java # OpenJDK6
>
> *still* the java version of choice is openjdk6
>
> i don't know how much the /usr/local/etc/javavms is consulted.

Thanks. I can confirm the above.

  bye
	av.


More information about the freebsd-java mailing list