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
-
Is java installed in your system ?Srikanth Venkatesh– Srikanth Venkatesh2011年07月17日 12:00:29 +00:00Commented Jul 17, 2011 at 12:00
-
Check the architecture of the Eclipse you downloaded. If it's the X86_64, is won't be able to use the 32-bit Java, and vice-versa. You can still make it all work, you just need the right JDK version for your Eclipse, and set the -vm arg in the eclipse.ini file.g051051– g0510512011年07月17日 12:08:57 +00:00Commented Jul 17, 2011 at 12:08
-
That might be the reason, thank you. I'm now downloading a 32-bit version of Eclipse. Let's see if that works...Bv202– Bv2022011年07月17日 12:11:26 +00:00Commented Jul 17, 2011 at 12:11
-
Thanks you, it works fine with a 32-bit version!Bv202– Bv2022011年07月17日 12:21:20 +00:00Commented Jul 17, 2011 at 12:21
2 Answers 2
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.
3 Comments
java and javaw in it. Whats the response?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.