Re: Not Able to Run Java Program From Eclipse
First, make sure you have both the JRE and JDK installed:
Code:
apt-get install sun-java6-jdk sun-java6-jre
Or, if you'd prefer OpenJDK:
Code:
sudo apt-get install openjdk-6-jdk openjdk-6-jre
(Not 100% sure about those install commands, so you could just grab those from the Software Center if the commands don't work.)
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:
Code:
sudo apt-get install eclipse
Hope this helps.
My Laptop: Gateway T-6330u, 2.0 GHz Pentium Dual-Core, 3 GB RAM, 250 GB HDD - Ubuntu 14.04
My Desktop: Lenovo IdeaCentre K450, 3.2 GHz Core i5, 8 GB RAM, 2.5 TB HDD - Windows 8.1, Ubuntu 14.04 in VM
Bookmarks