Multiple Java versions

Achilleas Mantzios achill at matrix.gatewaynet.com
Wed Sep 25 07:30:55 UTC 2013


On 25/09/2013 09:38, Andrea Venturoli wrote:
> On 09/25/13 08:28, Jason Helfman wrote:
>
>> java/javavmwrapper
>>
>> cc: java
>
> 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.


> bye & Thanks
> av.
>
> _______________________________________________
> freebsd-java at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-java
> To unsubscribe, send any mail to "freebsd-java-unsubscribe at freebsd.org"


-- 
Achilleas Mantzios



More information about the freebsd-java mailing list