Friday, May 18, 2012

JDK installation on Ubuntu

JDK installation on Ubuntu



if the way I like it



 Quote:
Put the file [file_name_JDK]. Bin in the folder (eg) / home / [user] / java

Quote:
Continue to enter the terminal and into the java directory before ..

Quote:
# Chmod 777 [file_name_JDK]. Bin

Quote:
#. / [file_name_JDK]. Bin

Quote:
After that will appear like a EULA, press the space bar until they run out, continue to type yes and press enter

Quote:
Wait until the installation process is complete

Quote:
After the installation is complete, open the file / etc / profile and / etc / bash.bashrc

Quote:
add a line like the following script in the file before

Quote:
JAVA_HOME = / home / [user] / java / [folder_name_jdk]
export JAVA_HOME
PATH = $ JAVA_HOME / bin: $ PATH
export PATH

Quote:
[folder_name_dk] customize with a place to install the jdk, then save the file

Quote:
now try to check in terminal $ java-version

Quote:
if it says "java version blablablabla", means the successful installation ..

Quote:
if not available, try to restart the computer first, test it again $ java-version

No comments:

Post a Comment