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 http://www.sun.com 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:

    [email protected]:~$ /Download/jdk-6u10-rc-bin-b28-linux-i586-21_jul_2008.bin

    then just add sh before the location just like this:


    [email protected]:~$ 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:
[email protected]:/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.

Monday, 9 February 2009

How to solve Javadoc error in Eclipse



“Note: An exception occurred while getting the Javadoc. See log for details”
I think that many people are having same problem as me and annoyed with the above message when using Eclipse to do their Java Project and depend on Javadoc to assist their programming tasks.

  • Start Eclipse (of course it’s the first step :D).
  • Go to Windows > Preferences
  • Click Installed JREs
  • Click Add
  • Select Standard VM and then Click Next.
  • Click Directory and choose your Sun JDK Folder.
  • Click Finish
  • Tick your Sun JDK Folder from the list.
  • Click OK
  • Restart Eclipse.

Problem solved!

P/S: Also work in Windows.

How to Install Office 2007 on Ubuntu by using Crossover Office Professional

“I hate Windows OS but I love Windows Software.” Is a popular quote among Linux users. I agree to this quote since I already switched my laptop operating system from Windows to Ubuntu Muslim Edition.

So, how you are going to install windows software on Ubuntu? You may use CrossOver Office Professional. I will show you how to install Microsoft Office 2007 by using CrossOver Office Professional.

  1. First, you must install CrossOver Office Professional.

  2. Open in Terminal the folder that contain CrossOver installer.

  3. Type: “sh Crossover-Pro-7.0.2.sh” (without speech quotes) in Terminal.

  4. An EULA and CrossOver Installation menu

  5. Click Begin Install.

  6. Wait until installation of CrossOver finished.

  7. Click “Install Windows Software”.

  8. Select “Microsoft Office 2007” from the list.

  9. Insert Office 2007 DVD or choose Office 2007 Setup by browsing through your folders.

  10. Click Next.

  11. CrossOver will run the installer and continue by following the same step in Windows.

  12. You can browse the location of office shortcut here

Google custom search

Custom Search