aspose file tools*
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


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "ClassPath Conflict" Watch "ClassPath Conflict" New topic
Author

ClassPath Conflict

Brijesh Jaggi
Greenhorn

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;
com.sun.tools.javac.Main 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.

C:\jdk1.3\bin
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: 166
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
Sheriff

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
Rancher

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

C:\jdk1.3\bin

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.
Bill
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ClassPath Conflict