• Post Reply Bookmark Topic Watch Topic
  • New Topic

Determine which jdk version for tomcat  RSS feed

 
michael yue
Ranch Hand
Posts: 204
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi I installed java web services jwsdp 1_0 that come with tomcat and I have 2 jdk version installed 1.3.1 and 1.4.
How to determine the tomcat uses which jdk version in its compilation?
 
Rob Ross
Bartender
Posts: 2205
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My guess would be it uses whatever the value in JAVA_HOME is.
 
Shridhar. Blr.
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Rollin,

In the comnmand propmt Go to Ur Tomcat/bin folder and execute "catalina run" , this will display which version of JAVA U'r using..

Regards,
Shridhar..
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Since the system look in the PATH for the java.exe executable, it is the PATH that determines which JVM is started.
From any command prompt, type java -version you will get something like;
>java -version
java version "1.4.2_03"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_03-b02)
Java HotSpot(TM) Client VM (build 1.4.2_03-b02, mixed mode)
I believe that JAVA_HOME is used to find certain library files, so if the path and JAVA_HOME do not agree, you could get weird errors. I know I did when it happened to me.
Bill
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!