I’m trying to follow these instructions to set up a java development environment under ubuntu 12.04.
However, I think something is missing from my configuration.
I installed eclipse, and added the Web, XML and java development package in step 2. The default JVM is:
java version "1.6.0_24"
OpenJDK Runtime Environment (IcedTea6 1.11.3) (6b24-1.11.3-1ubuntu0.12.04.1)
OpenJDK Server VM (build 20.0-b12, mixed mode)
Tomcat is installed, and I can see & run the samples from localhost:8080
But when I try to add a new server (step 4) there is no “Server” under preferences; and when I create a new “Dynamic Web Project” (step 5) there’s no options there.
When I try switching perspectives, all I have is “CVS Repository Exploring”, “Debug”, “Resource (default)” and “Team Synchronizing”.
I’m obviously missing something (hopefully simple) – but why can’t I seem to get set up for java development?
OK, so I tried to start with a fresh install. I removed eclipse using the software center and then manually deleted /etc/eclipse.ini
I also remove my default workspace (~/workspace) and .eclipse
I then reinstalled Eclipse, and followed this to install the oracle java 7.
There was a problem, which was resolved by following the steps in this question.
Then, I installed the Web, XML and Java EE plugins from Help->Install New Software, and it seemed to work.