How to install Java on Debian Linux

How to install Java on Debian Linux


Summary

Just my notes on installing java so it is in a consistant place on all my machines.


Detail

Download the file

Run the download:

	chmod +x /download/jdkxxx.bin
	cd /usr/local
	/download/jdkxxx.bin
	

Make a symlink for it:

	ln -s jdkxxx java
	

Add it to the path (in /root/.bashrc if logging in as root)

	PATH=$PATH:/usr/local/java/bin:
	export PATH
	JAVA_HOME=/usr/local/java
	export JAVA_HOME