Meaningless Drivel is fun!
The moose likes Tomcat and the fly likes ClassPath Conflict Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "ClassPath Conflict" Watch "ClassPath Conflict" New topic

ClassPath Conflict

Brijesh Jaggi

Joined: Jan 21, 2006
Posts: 1
Hi guys ,
after installing oracle 9i on my computer i am facing some strange issues . I cant make a jsp file now . i get exceptions as

Unable to find a javac compiler; is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK

i check the classpath variables JAVA_HOME points to proper path ,
but there is an suspicious entry , when i do path in the dos prompt.

can that cause a problem .i dont have jave 1.3 installed onmy computer neither i could find that in my classpath , my os is win xp. Any suggestion guys .
Tauri Valor
Ranch Hand

Joined: Aug 03, 2005
Posts: 180
It could still have been hidden in your system registry..try to delete this entry in regedit and be careful while deleting the entry from registry(do not mess up with any other entry while trying to delete your old jdk entry).

A Moment's insight is sometimes worth a Life's experience.
Ben Souther

Joined: Dec 11, 2004
Posts: 13410

Before touching the registry, how do you know that JAVA_HOME is pointing to the correct JVM?
How did you test this?

Also, how are you starting Tomcat; from the batch/shell scripts or from the services window?

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13037
when i do path in the dos prompt.


That is bound to cause problems. You should edit the system environment to fix the path.
Control Panel -> System -> Advanced tab -> Environment Variables button
Since some program installations mess with the Path you may find all sorts of weird stuff in there.
Try this at a command prompt:
java -version
to see if you are getting the right version.
I agree. Here's the link:
subject: ClassPath Conflict
It's not a secret anymore!