Error: Unable to find a javac compiler

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Fred

    #1

    Error: Unable to find a javac compiler

    I have just upgraded from Tomcat 5.0 to 5.0.27 and when I try to veiw the
    website I am getting an error message root cause of "Unable to find a javac
    compiler;com.su n.tools.javac.M ain is not on the classpath.Perha ps JAVA_HOME
    does not point to the JDK".

    When latest Tomcat was installed it pointed to the JDK directory and
    everything seamed to run fine. This is the first time I have personally
    upgraded Tomcat and I am sure it is somthing simple.

    Where is Java-Home and how do I point it to the JDK?

    Any suggestions would be greatly appreciated.

    Thanks


  • remko caprio

    #2
    Re: Error: Unable to find a javac compiler

    Try and copy
    tools.jar to TOMCAT_HOME/common/lib

    remko caprio
    visit: http://www.szirine.com
    Szirine Magazine, literary magazine on world cultures and subcultures


    "Fred" <Fred@hotmail.c om> wrote in message news:<aEnLc.976 2$K53.2514@news-server.bigpond. net.au>...[color=blue]
    > I have just upgraded from Tomcat 5.0 to 5.0.27 and when I try to veiw the
    > website I am getting an error message root cause of "Unable to find a javac
    > compiler;com.su n.tools.javac.M ain is not on the classpath.Perha ps JAVA_HOME
    > does not point to the JDK".
    >
    > When latest Tomcat was installed it pointed to the JDK directory and
    > everything seamed to run fine. This is the first time I have personally
    > upgraded Tomcat and I am sure it is somthing simple.
    >
    > Where is Java-Home and how do I point it to the JDK?
    >
    > Any suggestions would be greatly appreciated.
    >
    > Thanks[/color]

    Comment

    • builtbear
      New Member
      • Jul 2006
      • 1

      #3
      So this worked for me ... I am just wondering if someone can tell me why it worked... I am confused on why I needed to copy that over.. :confused:

      Comment

      Working...