Running J2EE Eclipse in a virtual machine - unable to find javac compiler

Something new by asking questions here, so bear with me. I recently had to install an XP VM to run a program that required the use of an Oracle 10g client. I am setting up my tomcat server, and when I went through the directory and launched the .jsp file, I got this error

2011-02-22 09:13:01,291 ERROR (org.apache.jasper.compiler.Compiler:394) - Javac exception 
Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK

It is strange that I set the JAVA_HOME variable in my virtual machine to "C: \ Program Files \ Java \ jdk1.6.0_24;" and my PATH variable is '% JAVA_HOME% \ bin;'.

It says that the jasper-complier error ... I do not forget to add several TOMCAT_HOME variables to my path to the eclipse library, which examined the jasper compiler, jasper-runtime, jsp-api.jar and servlet-api.jar located in my tomcat server folder.

I also followed these instructions here which indicate to add jdk \ bin tools.jar to Eclipse Ant global runtime entries

Any help is appreciated, I'm at a standstill.

+2
source share
3 answers

Hey, I get it, just make sure you add your JDK to your PATH variable (e.g. java \ jdk ... \ bin) and I also added it to my tomcat \ lib folder and added it to my projects as another variable.

+1
source

This usually happens because Oracle ships with an outdated version of the JDK that conflicts with the PATH we installed. Scan the PATH environment variable for any Oracle JDK and delete it. This should help.

+1
source

Take a look at the Launcher configuration (such as "Apache Tomcat") and find the one that was created when the JSP was launched. There should be a "medium tab". Here you can define JAVA_HOME. Is this version 5 of Tomcat (or earlier)? Starting with version 5.5, Jasper has a built-in JDT (eclipse java compiler).

+1
source