Thursday 19 February 2009

Install Eclipse with Sun JDK on Ubuntu 8.04 Hardy Heron (CORRECTED)

First of all, I will like to share to all of you on how to install Eclipse IDE with Sun JDK instead of GNU JDK (don't even understand what is Scanner class!! - "Scanner can not be resolved to a type").

  1. Download Sun JDK from Sun Website of course for linux (click here) or just go to for latest JDK.
  2. Open Terminal or Konsole if you are using Kubuntu.
  3. Open your JDK download directory (save at Home folder recommended), right-click, select copy and right-click and select Paste to paste on Terminal.
  4. it will look like this:

    a@a-laptop:~$ /Download/jdk-6u10-rc-bin-b28-linux-i586-21_jul_2008.bin

    then just add sh before the location just like this:

    a@a-laptop:~$ sh /Download/jdk-6u10-rc-bin-b28-linux-i586-21_jul_2008.bin

    Read the obvious License agreement and type yes to continue.

  5. the jdk folder should be in the same folder as the installation file.
  6. There are many ways to install eclipse but I recommend to use Add/Remove Application at Applications>Add/Remove...

7. Install eclipse and take your break and have some coffee. Trust me, it will take long time unless you have very high speed internet connection. I envy you if you do! ;-) Streamyx Sucks. TMNet Direct which my university subscribed is not even better.

After the installation finished , type sudo -b gedit /etc/eclipse/java_home . For kubuntu, you just need to change gedit to kwrite.

for example:
a@a-laptop:/etc/eclipse$ sudo -b gedit /etc/eclipse/java_home

(See above screenshot) Put your jdk location on top of the list after #. For example, my jdk location is /home/aizuddin/jdk1.6.0_10.

8. Try to open Eclipse. It should be no problem to understand what is "Scanner".

Screenshot showing Eclipse can finally understand what the hell is Scanner.

1 comment:

ghimau said...

Nice share bro. Memang streamyx = tmnet ni memang sucks!.. mungkin sebab takder competitor dalam bidang ISP ni..

Google custom search

Custom Search