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