473,786 Members | 2,368 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

error occured while compiling jsp

1 New Member
please give me solution for this

root cause

Unable to find a javac compiler;
com.sun.tools.j avac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK
org.apache.tool s.ant.taskdefs. compilers.Compi lerAdapterFacto ry.getCompiler( CompilerAdapter Factory.java:10 6)
org.apache.tool s.ant.taskdefs. Javac.compile(J avac.java:935)
org.apache.tool s.ant.taskdefs. Javac.execute(J avac.java:764)
org.apache.jasp er.compiler.Com piler.generateC lass(Compiler.j ava:382)
org.apache.jasp er.compiler.Com piler.compile(C ompiler.java:47 2)
org.apache.jasp er.compiler.Com piler.compile(C ompiler.java:45 1)
org.apache.jasp er.compiler.Com piler.compile(C ompiler.java:43 9)
org.apache.jasp er.JspCompilati onContext.compi le(JspCompilati onContext.java: 511)
org.apache.jasp er.servlet.JspS ervletWrapper.s ervice(JspServl etWrapper.java: 295)
org.apache.jasp er.servlet.JspS ervlet.serviceJ spFile(JspServl et.java:292)
org.apache.jasp er.servlet.JspS ervlet.service( JspServlet.java :236)
javax.servlet.h ttp.HttpServlet .service(HttpSe rvlet.java:802)

thanks
Jan 9 '07 #1
2 3412
r035198x
13,262 MVP
please give me solution for this

root cause

Unable to find a javac compiler;
com.sun.tools.j avac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK
org.apache.tool s.ant.taskdefs. compilers.Compi lerAdapterFacto ry.getCompiler( CompilerAdapter Factory.java:10 6)
org.apache.tool s.ant.taskdefs. Javac.compile(J avac.java:935)
org.apache.tool s.ant.taskdefs. Javac.execute(J avac.java:764)
org.apache.jasp er.compiler.Com piler.generateC lass(Compiler.j ava:382)
org.apache.jasp er.compiler.Com piler.compile(C ompiler.java:47 2)
org.apache.jasp er.compiler.Com piler.compile(C ompiler.java:45 1)
org.apache.jasp er.compiler.Com piler.compile(C ompiler.java:43 9)
org.apache.jasp er.JspCompilati onContext.compi le(JspCompilati onContext.java: 511)
org.apache.jasp er.servlet.JspS ervletWrapper.s ervice(JspServl etWrapper.java: 295)
org.apache.jasp er.servlet.JspS ervlet.serviceJ spFile(JspServl et.java:292)
org.apache.jasp er.servlet.JspS ervlet.service( JspServlet.java :236)
javax.servlet.h ttp.HttpServlet .service(HttpSe rvlet.java:802)

thanks
Perhaps JAVA_HOME does not point to the JDK

Note: I've just copied part of the stackTrace you got.
Jan 12 '07 #2
rickumali
20 New Member
Perhaps JAVA_HOME does not point to the JDK
The JDK is the directory that contains your Java Development Kit. Specifically, it contains the Java compiler (javac). The top level of your JDK should look similar to this (from Windows):

Expand|Select|Wrap|Line Numbers
  1. C:\> echo %JAVA_HOME%
  2. C:\j2sdk1.5.0_04
  3.  
  4. C:\> dir %JAVA_HOME%
  5.  Volume in drive C has no label.
  6.  Volume Serial Number is 9023-0CA4
  7.  
  8.  Directory of C:\j2sdk1.5.0_04
  9.  
  10. 11/13/2006  11:36 PM    <DIR>          .
  11. 11/13/2006  11:36 PM    <DIR>          ..
  12. 07/15/2005  08:05 PM    <DIR>          bin
  13. 06/03/2005  03:32 AM             2,539 COPYRIGHT
  14. 07/15/2005  08:02 PM    <DIR>          demo
  15. 11/13/2006  11:41 PM    <DIR>          docs
  16. 07/15/2005  08:02 PM    <DIR>          include
  17. 07/15/2005  08:05 PM    <DIR>          jre
  18. 07/15/2005  08:05 PM    <DIR>          lib
  19. 06/03/2005  02:35 AM            15,848 LICENSE
  20. 07/15/2005  08:01 PM            21,223 LICENSE.rtf
  21. 06/03/2005  02:35 AM            20,955 README.html
  22. 07/15/2005  08:02 PM    <DIR>          sample
  23. 06/03/2005  02:35 AM        18,053,285 src.zip
  24. 06/03/2005  02:35 AM            69,740 THIRDPARTYLICENSEREADME.txt
  25.                6 File(s)     18,183,590 bytes
  26.                9 Dir(s)  24,481,398,784 bytes free
  27.  
  28. C:\> dir %JAVA_HOME%\bin\javac.exe
  29.  Volume in drive C has no label.
  30.  Volume Serial Number is 9023-0CA4
  31.  
  32.  Directory of C:\j2sdk1.5.0_04\bin
  33.  
  34. 06/03/2005  02:29 AM            49,269 javac.exe
  35.                1 File(s)         49,269 bytes
  36.                0 Dir(s)  24,481,398,784 bytes free
  37.  
Jan 13 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

3
2932
by: josh dismukes | last post by:
/// here is the code i'm getting a parse error on the last line of the code which /// is </html> any help will be much appreciated. <?php session_start ();
3
2836
by: Falk Fassmann | last post by:
Hello people, I have some problem with Debugging in MS Visual C++. I want to generate a TCP/IP-Socket. The compiling-process is fine but when I debugg the project there's occuring some errors like: 'error LNK2001: Nichtaufgelöstes externes Symbol "unsigned int __stdcall socket(int,int,int)" (?socket@@$$FYGIHHH@Z)"' "Nichtaufgelöstes externes Symbol" means "unresolved external symbol"
1
1904
by: Remo | last post by:
Hi I want to install the VS .Net 2003 Prof on my XP prof First i tryed the installation, but error occured during required comps. Reading docu, they say install required comps by hand, doing so, install IE6SP1 ,...., and at DotnetFx.EXE it works great, copy files, register all, and at the end, an error occured (all will be rolled back): Microsoft .NET Framework 1.1 Setup Error 1935. An Error occured during the installation of assembly...
0
313
by: Ian Rowland | last post by:
Has anyone had the following error when compiling a solution in Visual Studio 2003 and if so is there a fix? ‘Could not copy temporary files to the output directory. No Extenders could be found for the name 'Intel C++ Integration Tool' under the CATID {89FB23F7-E591-4a2f-8E0F-64C0522FCF77}. Make sure that the Extender Provider for this Extender is correctly registered.’ The first time it happened a reboot corrected it. The second...
4
3467
by: Weasel | last post by:
This occured right after i tryed to compile the file hello.cpp:9:2: warning: no newline at end of file
2
1739
by: sean | last post by:
Hi there, I am trying to call a C# web service from an aspx page, I have the asmx file, a user control file ascx and the aspx file. I have verified that the web service is returning correct values from the service, however when I try to load the aspx page it falls over in a cruumbling heap! Could someone tell me what I am doing wrong as I know that I am close to getting this thing working. Thanks in advance for your answer
4
1334
by: Slasher186 | last post by:
Hi all, First of all, I'm sorry if I posted at the wrong section here, but I can't seem to find the VB 6.0 newsgroup ? I'm developing my apps with VB 6.0 sp5 installed on win xp. I have create an exe file that runs fine on both winxp and win2k. However, when I try to execute that file on win 98 machine, there are errors. This error may vary between "EOF or BOF expected.." or "Error 13, Type mismatch". I've tried over and over again to do...
4
1939
by: Al Williams | last post by:
Hi, I have error handling in place throughout my application. I also start the application wrapped in error handling code to catch any unexpected exceptions (i.e. exceptions that occur where I haven't placed error handling code). When I run my app from the IDE, the unhandled errors are caught by the error handling code in my Sub Main routine and the error details are logged to a text file and optionally e-mailed to me for follow-up.
17
5128
by: abdur_rab7 | last post by:
Hi, I am compiling code for nanosleep in CYGWIN. During compilation i get the following error Socket.cc: In method `bool Socket::hangOnConnection(int = 0)': Socket.cc:338: aggregate `struct timespec tmsp' has incomplete type and cannot b e initialized
2
2340
by: Qasimtn | last post by:
Error occured while compiling the function which is a operator(<) function if remove the key word const in the argument no error occurs. Help me i have no idea what i have done wrong with this code....... i have mentioned the compiler error after the function implementation #include<iostream> using namespace std; // //Box Class
0
9491
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
10163
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
10104
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
8988
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
6744
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5397
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5532
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4063
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
3668
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.