Re: Unable to find a javac compiler; when opening URL: http://localhost:8080/axis/happyaxis.jsp
My personal experience with this kind of problem is as follows (with Java 1.5): The Java installer installs the JRE twice, once by itself and once underneath the JDK. When the Tomcat (version 5.5) installer asks you which one to use, you should choose the second one (underneath the JDK). Explanation (best guesses not sure knowledge). Tomcat considers his java home to be the directory given as JRE during the install (not the JAVA_HOME environment variable). Starting from this directory, tools.jar is found as ../lib/tools.jar in the JDK directory. This works only for the second and not for the first JRE choice. Regards Franz Alexandr Khlystov schrieb: OS: Windows 2003 Server when opening URL: http://localhost:8080/axis/happyaxis.jsp I get 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 at org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.getCompiler(CompilerAdapte at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:969) at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:799) at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:320) but JAVA_HOME=C:\j2sdk1.4.2_04 CLASSPATH=C:\j2sdk1.4.2_04\lib\tools.jar;C:\j2sdk1.4.2_04\jre\lib\rt.jar;C:\j2sdk1.4.2_04\jre\lib can anybody please help me what is going on ? begin:vcard fn:Dr. Franz Fehringer n:Fehringer;Franz org:ISO Software Systeme adr;quoted-printable:;;Eichendorffstrasse 29;N=C3=BCrnberg;;90491;Deutschland email;internet:mailto:[EMAIL PROTECTED] tel;work:+49/(911) - 99594-0 tel;fax:+49/(911) - 99594-580 x-mozilla-html:TRUE url:http://www.isogmbh.de/ version:2.1 end:vcard
Re: Unable to find a javac compiler; when opening URL: http://localhost:8080/axis/happyaxis.jsp
Thank you, Chris. really CLASSPATH should not be set. I am the one person using my PC. I find out problem it occur because shortcut to tomcat refered to other java.exe that JAVA_HOME watched. when I ran tomcat by startup.bat all goes Ok. On 4/17/06, Chris Smith <[EMAIL PROTECTED]> wrote: > Alexandr Khlystov wrote: > > 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 > > > but > > > > JAVA_HOME=C:\j2sdk1.4.2_04 > > CLASSPATH=C:\j2sdk1.4.2_04\lib\tools.jar;C:\j2sdk1.4.2_04\jre\lib\rt.jar;C:\j2sdk1.4.2_04\jre\lib > > Those environment variables are set to those values in what context? The > one you use to start Tomcat? Or just in some command shell somewhere? > > (Incidentally, you do not need to put jre/lib/rt.jar in the CLASSPATH. In > fact, you probably shouldn't set a CLASSPATH at all.) > > -- > www.designacourse.com > The Easiest Way To Train Anyone... Anywhere. > > Chris Smith - Lead Software Developer/Technical Trainer > MindIQ Corporation > >
Re: Unable to find a javac compiler; when opening URL: http://localhost:8080/axis/happyaxis.jsp
Alexandr Khlystov wrote: 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 but JAVA_HOME=C:\j2sdk1.4.2_04 CLASSPATH=C:\j2sdk1.4.2_04\lib\tools.jar;C:\j2sdk1.4.2_04\jre\lib\rt.jar;C:\j2sdk1.4.2_04\jre\lib Those environment variables are set to those values in what context? The one you use to start Tomcat? Or just in some command shell somewhere? (Incidentally, you do not need to put jre/lib/rt.jar in the CLASSPATH. In fact, you probably shouldn't set a CLASSPATH at all.) -- www.designacourse.com The Easiest Way To Train Anyone... Anywhere. Chris Smith - Lead Software Developer/Technical Trainer MindIQ Corporation
Unable to find a javac compiler; when opening URL: http://localhost:8080/axis/happyaxis.jsp
OS: Windows 2003 Server when opening URL: http://localhost:8080/axis/happyaxis.jsp I get 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 at org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.getCompiler(CompilerAdapte at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:969) at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:799) at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:320) but JAVA_HOME=C:\j2sdk1.4.2_04 CLASSPATH=C:\j2sdk1.4.2_04\lib\tools.jar;C:\j2sdk1.4.2_04\jre\lib\rt.jar;C:\j2sdk1.4.2_04\jre\lib can anybody please help me what is going on ?