Bv202
Bv202

Reputation: 4044

Eclipse & web development

I'm trying to learn servlets and JSP and would like to do this with Eclipse. When I click about in my current version, I get this info:

Eclipse IDE for Java Developers
Version: Helios Service Release 2

After searching a bit, it seems you cannot access these features with this version - you need "Eclipse IDE for Java EE Developers".

I've found a tutorial to install these plugings in your Eclipse installation, but I'm just getting a "failed"-message with no error message. After this, I decided to just download a new version (the EE one ofcourse) from the Eclipse website. The old installation is in c:\program files (x86)\eclipse, the new one in c:\program files (x86)\eclipse2.

The old one still works fine, but when I try to run the new one, I get this:

enter image description here

I have no clue what is wrong here. Am I doing something wrong? The only thing I want is to use Eclipse for JSP and Servlet Development (soon also EJB).

Thanks

Upvotes: 1

Views: 237

Answers (2)

renick
renick

Reputation: 3881

Make sure a Java 6 JDK is installed. If it is then you should be able to type javac -v on a command prompt and see output like this 'javac 1.6.0_26'

Once you have this correctly eclipse should start with no issues.

Upvotes: 0

Jacob
Jacob

Reputation: 43209

Eclipse cannot find your JRE/JDK. Put the JRE/JDK folder in your PATH variable. My JDK is located here:

C:\Program Files\Java\jdk1.6.0_24

Should be a similar path for you. Add that to your PATH variable.

Have look at this tutorial to find out how.

Upvotes: 2

Related Questions