• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Not able to run JSP

 
Ranch Hand
Posts: 135
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Every One!!

When i am trying to run JSP i am getting error like

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 i have already set system variable as
JAVA_HOME=C:\Program Files\Java\jdk1.5.0_04;

Would you tell how can i fix it?

With thanks in advance:

Prabhat
[ March 13, 2008: Message edited by: Bear Bibeault ]
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What version of Tomcat are you using?
How did you install it?
How did you start it up?
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
As Ben mentioned, please post the details.

JAVA_HOME=C:\Program Files\Java\jdk1.5.0_04;



Also, make sure that you remove the semi-colon in the JAVA_HOME value. It should just be:

 
Prabhat Gupta
Ranch Hand
Posts: 135
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
quote
--------------------------------------
What version of Tomcat are you using?
How did you install it?
How did you start it up?
--------------------------------------
I m using Tomcat5.0..server runs fine..i m getting the Index.jsp page but the jsp page that i have created say A.jsp , i am not able to run.

The environment variables that i have set are

CLASSPATH =C:\Program Files\Java\JDK 1.5.0_04\lib\tools.jar;C:\TomCat 5.0\Common\lib\servlet_api.jar

JAVA_HOME=C:\Program Files\Java\JDK 1.5.0_04
JRE_HOME=C:\Program Files\Java\JRE 1.5.0_04


One more thing when i m running the same jsp in ECLIPSE it runs fine.But
It is getting problem when i m using TOMCAT.I guess the problem is some environment variable setting that i m not able to figure out.

Would you suggest what should i do?

Thanks & Regards

Prabhat
 
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi

I think its not able to find rt.jar .
Try to Add this in your SYSTEM Path
 
Prabhat Gupta
Ranch Hand
Posts: 135
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thnx all!!
now it is working..
 
All of the following truths are shameless lies. But what about this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic