Thursday, November 22, 2007

Big Breast Open Dance

Shutdown: Shutdown PC scheduled

In most distributions of Linux, the Java JDK is coming to install the package managers such as APT


in Debian / Ubuntu , PACMAN Arch

in in Mandriva ... etc. These package managers install and configure Java and Paths, in the case of Pacman DO SO strange ... from Anyway, if you want the latest version of Java should download it from http://java.sun.com Web there who want to lower the JDK, the set of PATHS is equal in all, I will JDK1.6 show for JDK6


or you want to call T_T
After installing the. bin downloaded from the Java website.
thing to do is locate the folder where you want the JDK, I for example I have in my home, this is my path: / home/martin/jdk1.6.0_03

First things first .. =) Edit / etc / Environments to add the Java Home as an environment variable.

$ sudo nano / etc / environment

if they do not have nano is more comfortable and open it with nano instead of gedit in KDE kate.

this file Add the following: Ex

my file with the JDK 1.6

JAVA_HOME = JAVA_HOME = "/ home/martin/jdk1.6.0_03"
PATH = / home/martin/jdk1.6.0_03/bin : $ PATH there replaced by their path and folder name you ^ ^ Now the console will export the Java Home, open the console and type these 3 commands, as user (not root).

should also be replaced depending on your situation: P

$ export PATH = / home/martin/jdk1.6.0_03/bin: $ PATH
$ JAVA_HOME = "/ home/martin/jdk1.6.0_03 /"


$ export JAVA_HOME

That's all, now the command: java-version returns

If they are already installed version walk:) About

0 comments:

Post a Comment