[PC-BSD Public] choosing java version

Lars Engels lars.engels at 0x20.net
Fri Jul 19 13:35:39 PDT 2013


On Fri, Jul 19, 2013 at 09:14:14PM +0200, Pierre Goupil wrote:
> Good evening,
> 
> I have installed OpenJDK 7 from the ports in my PC-BSD 9.1 and I can't
> figure out how to tell my system to use it rather than the 6 branch.
> 
> On Linux, I was used to use update-java-alternatives but I can't figure out
> what is the equivalent.
> 
> N.B.: I don't want to remove OpenJDK 6, just to be able to switch between
> the two.
> 
> Thanks in advance for any hint,

In FreeBSD, /usr/local/bin/java is a shellscript wrapper which starts
the actual java binary depending on /usr/local/etc/javavm_opts.conf or
environment variables.
For example, to start a Java 7 VM, run "env JAVA_VERSION='1.7' java"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://lists.pcbsd.org/pipermail/public/attachments/20130719/bb2cddda/attachment.bin>


More information about the Public mailing list