(HowTo) permanently set/switch shell-PATH to java VM

ucomp

Active Member

Reaction score: 31
Messages: 186

Code:
root@freebsd:~# myEditor /etc/csh.cshrc

# $FreeBSD: releng/12.0/bin/csh/csh.cshrc 337849 2018-08-15 14:41:24Z brd $
#
# System-wide .cshrc file for csh(1).
setenv JAVA_VERSION "12.0+"
setenv JAVA_HOME /usr/local/openjdk12
--
root@freebsd:~# source /etc/csh.cshrc
--

root@freebsd:~# java -version
java -version
openjdk version "12" 2019-04-16
OpenJDK Runtime Environment (build 12+12-2)
OpenJDK 64-Bit Server VM (build 12+12-2, mixed mode)
 
Top