Tuesday, February 24, 2009

Installing Java

The simplest way is to go to Synaptics Package Manager and find it. But MAY BE U MISS OUT THE LATEST VERSION......
Jus chill and download the "jdk.bin" file from java.sun.com

  • Save the .bin file to ur hard disk where u have access rights.
  • Go to terminal- to the location u saved the file.
  • Switch as a root user by su command.
  • Type chmod +x filename.bin //Eg, chmod +x jdk-6u12-linux-i586.bin
  • Now run the binary file using ./filename.bin
  • Accept terms & condn and the installation would began.
After installation u may not able to run ur java programs
  • Open terminal, go to location where u wish to run java & javac commands.
  • Type sudo export PATH=/path/jdk/bin:$PATH
  • For eg. sudo export PATH=/usr/local/jdk1.6.0_12/bin:$PATH
Don't forget to install the java docs from the same website.
  • Download the .zip file.
  • Unzip by unzip filename.zip.
  • Preferably place it on the same location as ur JDK.
  • Save the index.html as a bookmark in ur browser.
  • Docs are of sheer importance as they provide details about all built-in classes of Java so dare not to ignore it.

No comments:

Post a Comment