Re: Not Able to Run Java Program From Eclipse
First, make sure you have both the JRE and JDK installed:
Or, if you'd prefer OpenJDK:
apt-get install sun-java6-jdk sun-java6-jre
(Not 100% sure about those install commands, so you could just grab those from the Software Center if the commands don't work.)
sudo apt-get install openjdk-6-jdk openjdk-6-jre
Also, I had some issues when using the Eclipse from the Software Center. If you got Eclipse from the Ubuntu Software Center or Add/Remove... you could try removing it and installing Eclipse from the terminal with:
Hope this helps.
sudo apt-get install eclipse
My Laptop: Gateway T-6330u, 2.0 GHz Pentium Dual-Core, 3 GB RAM, 250 GB HDD - Windows Vista, Windows 7, Ubuntu 10.04.
My Desktop: Dell Dimension 4600, 2.8 GHz Pentium 4, 1 GB RAM, 128 MB GeForce FX 5200, 120 GB HDD - Windows XP, Ubuntu 10.04.