Easy!!! Class not found question???
Posted on 2001-09-06
I am trying to run a simple chat program. This program is from Oreilly.com. Anyway, the problem seems to be a classpath problem.
I am using apache/tomcat. On my work computer, Windows NT 4.0 this program works great!! Same exact setup of apache/tomcat. At home, on windows 98 I have multiple problems.
First, I am using a package "com.oreilly.servlet.*". This package is loaded by a jar file "cos.jar". On my windows nt machine, I changed the <control panel><system><classpath> to include "c:/jdk1.3/lib/cos.jar". This machine executes the program fine.
At home, on windows 98, I changed my autoexec.bat file to point to this package:
I also have included the following statement in my Tomcat startup file "startup.bat":
Yet, when I execute this chat program from my windows 98 machine, I get the following message:
General exception: java.lang.ClassNotFoundException: com.oreilly.servlet.HttpMessage
It seems to me that for some reason, tomcat is not recognizing the com.oreilly jar file (cos.jar) on my windows 98 machine. Yet it does on my NT machine.
Please, provide any insight you can provide.