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
Hi all Thanks for your suggestions - I added JAVA_HOME to catalina.bat, but stillno luck.
Out of frustration, I uninstalled J2EE, and installed J2SE - don't know why I did that, just thought it might work - but still no luck. Then I had a brainstorm - earlier I had set up a new environment variable for my OWN user, and this time, I set JAVA_HOME as a system variable.
Worked like a charm. *sniff* Wish technology was easier in the dog days of your life.
SO, MORAL OF THE STORY: Set JAVA_HOME as C:/blah/blah/jdk in your SYSTEM VARIABLES, not user variables!!! Thanks all anyway. Shall hear from me more often, now that I have atleast started here anithinks
P.S: Say, where exactly is the Tomcat forum on the Big Moose Saloon page - can't seem to find it at all - have to come through the link you provided on the Java(beginner) thread.
Joined: Sep 02, 2004
OK, mea culpa, found the Apache/TOMCAT forum in the Products sub menu. anithinks