473,770 Members | 2,028 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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
Jul 17 '05 #1
2 23371
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" <Fr**@hotmail.c om> wrote in message news:<aE******* **********@news-server.bigpond. net.au>...
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

Jul 17 '05 #2
builtbear
1 New Member
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:
Jul 21 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
3686
by: Jagdeesh | last post by:
Hai Colleagues, I am using Tomcat 4.1.24 and JDK 1.4.0_03 in my winXP machine. I've transferred a set of folders(containing jsp files) into tomcat's webapps directory(to /webapps/bob , /webapps/sue) and i have added the folders bob, sue in my server.xml(in the context path). When i am trying to run jsp files from my browser, it works fine. But, the following jsp files reports some exceptions which is quite hard to understand. Here is...
3
4820
by: Ed Severn | last post by:
I'm sorry of this question has been posed and answered many times before. But I have avoided using the "package" statement because of this. Most of my classes have no "package" statement, and their class files are stored in my current directory. Using "javac abc.java" works just fine. But some of my classes *do* have "package" statements. I try to compile them with "javac -d . def.java" so that the class file will be stored in a...
2
6970
by: Tony Johansson | last post by:
Hello! I get compile error when compiling using the command javac from the command terminal window(CMD). I have just two classes which are called HelloWorld.java and Slask.java. I have both classes in the directory called temp and I do cd temp to this directory. Then I do javac HelloWorld.java Now I get the compile error HelloWorld.java:9 cannot find symbol
4
5838
by: acemann7 | last post by:
Windows 2000 udb v 7.2 Got the latest fixpak 13 Applied it. Still can't get a single java sp to run. I used to get reason "2"... now reason "0" - reason 0 is not even documented. I point jdk11_path to: Java Development Kit 1.1 installation path (JDK11_PATH) =
5
2951
by: Raterus | last post by:
I'm just throwing this error out for my sanity, I've seen posts about this, but never solutions. I'm using VS.NET 2003, Framework 1.1, and I'm getting a random error about every 1 out of 10 times I try to start to run/debug a project (through Visual Studio) Server Error in '/Intranet' Application. -------------------------------------------------------------------------------- Compilation Error Description: An error occurred during...
2
3412
by: chaitanyaraju | last post by:
please give me solution for this root cause 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 org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.getCompiler(CompilerAdapterFactory.java:106) org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:935) org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:764)
1
2244
by: SushmaLabh | last post by:
I am usinng J2EE 1.4 SDK.I got this error.Pls Hepl me. org.apache.jasper.JasperException: Unable to compile class for JSP Generated servlet error: C:\Sun\AppServer\domains\domain1\generated\jsp\j2ee-apps\ConverterApp\war-ic_war\org\apache\jsp\index_jsp.java:20: unreported exception javax.naming.NamingException; must be caught or declared to be thrown Context ic = new InitialContext(); ^
5
2003
by: simon28317 | last post by:
I'm just learning how to program in java. I wrote my first java program, but got an error. Here is my program. import java.awt.*; import java.applet.*; public class me extends Applet { public void init () { String AuthorName;
1
1220
by: Silu | last post by:
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
0
9618
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9454
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10101
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10038
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8933
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5482
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4007
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3609
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2850
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.