Install Eclipse on Ubuntu Linux for Java Development

Installing Eclipse on Ubuntu isn’t all that complicated, but I had to do some digging before I found the right combination of steps to get this to work. These are the steps I followed today 12/5/14. They may be out of date by the time you read this, but hopefully they will still provide some guidance.

  1. Download eclipse and install
    2. Download Eclipse IDE for Java EE Developers, 64bit
    3. I found the resulting file “eclipse-jee-luna-SR1-linux-gtk-x86_64.tar.gz” in my “Downloads” folder.
    4. Right click on the .tar.gz file and choose “extract here.”
    5. The resulting folder is simply called “eclipse”
    6. I moved the “eclipse” folder to a directory I created in my “Home” directory. I called the new directory “Applications”.
    7. There is no installation process for Eclipse. It’s all ready to go once you uncompress it.
  2. Download the Java SDK and install (based on this StackOverflow thread)
    1. sudo apt-get install openjdk-7-jdk (Replace “7” with whatever version you want)
    2. Follow the prompts to install. I think I only had to hit enter a couple times.
  3. Install Tomcat
    1. sudo apt-get install tomcat7
    2. tomcat is now here: /usr/share/tomcat7

Creating a Tomcat server in Eclipse failed with this error: “‘Could not load the Tomcat server configuration at /usr/share/tomcat7/conf.”

Finding the best way to install the JDK was my biggest stumbling block. I manually downloaded it, moved it around, tried to change my paths, etc. but nothing worked until I found the command line instructions in StackOverflow.

Everything is running well for me now. I’ll report back if there are any extra steps needed later.

Update: Added step 3. I wasn’t able to create a server in Eclipse, so I had to install Tomcat.