April 27th, 2024
JDK Java path

Set Java path permanently

				
					vim /etc/profile

# add 
export JAVA_HOME=/usr/lib/jvm/jdk-11
export PATH=$PATH:$JAVA_HOME/bin
				
			

List available jdk installed and change as required

				
					archlinux-java status

# Available Java environments:
  # java-17-openjdk
  # java-21-jdk
  # jdk-11 (default)

				
			

Leave a Reply

Your email address will not be published. Required fields are marked *