forgive me, I'm not sure which board this should go under! none seemed appropriate..but here goes:
I'm trying to do the most basic thing in the world. Upgrade from my current jdk 1.3.1_07 to 1.4.1_02
The machine has a C and a D drive and I'm trying to install it to the D: drive. The machine runs windows NT, and I am accessing it through Terminal Services (similar to NetOp), it Also has Apache Tomcat running on it
I work alone so perhaps I just need another set of eyes to pick something simple out that I'm missing.
The ClassPath is: D:\Program Files\Apache Group\Tomcat 4.1\common\lib\mail.jar;D:\Program Files\Apache Group\Tomcat 4.1\common\lib\servlet.jar;D:\Program Files\Microsoft SQL Server 2000 Driver for JDBC\lib\msbase.jar;D:\Program Files\Microsoft SQL Server 2000 Driver for JDBC\lib\mssqlserver.jar;D:\Program Files\Microsoft SQL Server 2000 Driver for JDBC\lib\msutil.jar;
The JavaHome is: D:\j2sdk1.4.1_02
The Path is: .;D:\j2sdk1.4.1_02\bin;C:\perl\bin;%SystemRoot%\system32;%SystemRoot%;%systemdrive%\Program Files\System Tools;%SystemRoot%\System32\Wbem;C:\Program Files\Microsoft SQL Server\80\Tools\BINN;D:\Lotus\notes;D:\Program Files\Apache Group\Tomcat 4.1\common\lib\;D:\Program Files\Microsoft SQL Server 2000 Driver for JDBC\lib;
when I go to the command line and type: java -version it tells me that it is using the newly installed version (1.4)
when I run: echo %JAVA_HOME% it tells me I'm running the newly installed version (1.4)
however, in my apache log files I see that its still using the wrong version!!! and when I uninstall the 1.3 version my apache wont even start because it complains it can't find the 1.3 version!
Needless to say this is very frustrating since its a production machine that can't be down for very long so I only work on this issue late at night.
One colleague suggested I might need to define a %Catalina_Home% environment variable for apache? I currently dont have one. What would I enter as a value for this? What would it do?
Should I try to install the j2sdk again, but try to do it on the actual server and not through the Terminal Service utility?
The CATALINA_HOME (or JAVA_HOME I think it's called in some versions of Tomcat) environment variable defines the location of the JVM on your machine. If that variable is referring to the location of the 1.3 JVM, rather than the 1.4 JVM, that might be your problem. The first thing I'd recommend doing is to check your environment variables to see if either of these variables exist and, if they do, what their values are.
I just installed Tomcat 5 on a machine yesterday and, during installation, the installer asked for the location of the JVM. If you can't get the problem resolved by setting the CATALINA_HOME and/or JAVA_HOME environment variable(s), you might try simply uninstalling and reinstalling Tomcat, if that is an option for you.
In addition, it seems to me that this is more of a Tomcat issue than a Java (in General) issue. I'm assuming that you can successfully compile and execute Java code under the new version. If that's the case, you might get more helpful responses in the Apache/Tomcat forum, but you might get some good responses here, as well. [ October 22, 2004: Message edited by: Corey McGlone ]
I made a CATALINA_HOME and a TOMCAT_HOME and set their values to: D:\Program Files\Apache Group\Tomcat 4.1
I restarted the server machine twice however nothing changed. In my apache stdout log file I see its still using the same old 1.3 jdk. At this point I shut apache down from running as an NT service, then I started it as a command line running the startup.bat file Starting it in this manner it does accept the new 1.4 jdk
I kinda figured this was the case. Knowing this does not help me, because I have to run it as a service... but perhaps this tidbit of info might help someone direct me to a solution. Geoff
it certainly does. It tells you it's the Tomcat configuration and more specifically the parameters for the Tomcat service that are incorrect.
Easiest would be to remove the service and reinstall it using the correct JAVA_HOME. Use "service remove" followed by "service install" from a commandprompt in your tomcat/bin directory. Make sure JAVA_HOME is set correctly when you run it.
Another way could be to modify the existing service, not sure how to go about that.