Hi folks
Now, I am kind of semi-new to
Java programming (did manage to write a few programs some time back). But my problem is SOOO basic, it oughta be in this forum.
I was trying out my hand on Win XP on the
J2EE SDK 1.4, as i needed to do some servlet/JSP programming. I downloaded it from Sun (about a 100 MB), installed it nicely such that my installation is in
C:\Sun
The installation is such that the directory hierarchy is:
C:\Sun\AppServer\ and then it has the various folders like jdk, bin, lib etc. etc.
Now I managed to compile a few java programs, so the PATH env. variable is set correctly (PATH = C:\Sun\AppServer\jdk\bin)
I now downloaded Jakarta
Tomcat version 5.0.28, and installed it in C:\jakarta-5.0.28\
I was able to compile a java program that used the tomcat packages, so the CLASS_PATH variable is also set correctly.(CLASS_PATH = C:\jakarta-tomcat-5.0.28\common\lib\servlet-api.jar)
But my problem occurs when I try to run the startup.bat file in
C:\jakarta-5.0.28\bin\
to launch the tomcat server. It says that the JAVA_HOME variable hasn't been set correctly, and that Windows cannot find '-Djava.endorsed.dirs='.
Now, I googled for it all over, and everywhere it says that the JAVA_HOME variable ought to be whee the jdk is installed, so I set it to
C:\Sun\AppServer\jdk
but it still doesn't work.
ANy pointers please?
Anithinks