Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / December 2005

Tip: Looking for answers? Try searching our database.

HTTP 500 status error

Thread view: 
mahajan.vibhor@gmail.com - 25 Dec 2005 07:01 GMT
Hello

I have installed JDK 1.4.06 and Tomcat 5.0.28 on Win2000 machine. I
have set JAVA_HOME to java home directory and not bin directory.

I am able to run Tomcat default index. jsp page and examples of JSP and
servelet provided with the Tomcat.

When I try run my jsp and servelet I get error HTTP 500 status error
with this message "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"

I have set JAVA_HOME for both user nad system variables. I also tried
setting CATALINA_HOME to Tomcat hoime directory. Setting of CLASSPATH
variable is also not working.

Thanks in advance
JScoobyCed - 26 Dec 2005 01:31 GMT
> Hello
>
[quoted text clipped - 14 lines]
>
> Thanks in advance

It seems you have set the JAVA_HOME to the JRE, not the JDK. When you
install java from the j2sdk installer, it will put the public JRE in
(for windows) c:\program files\java\jre. But also it installs the SDK in
c:\j2sdk_xxx by default, or any path you have specified. In this folder
there is another jre (the same, just a duplication for development purpose).
So you should set the JAVA_HOME to the SDK path, not the JRE.

Signature

JSC

Roedy Green - 26 Dec 2005 01:44 GMT
>> I have set JAVA_HOME for both user nad system variables. I also tried
>> setting CATALINA_HOME to Tomcat hoime directory. Setting of CLASSPATH
>> variable is also not working.

see http://mindprod.com/jgloss/jdk.html#TESTING
Signature

Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.