java - Point Tomcat 7 to use different jdk -


read tutorial doesn't work on end. couldn't change java_home because other applications using it. how configure tomcat 7 use different jdk or jre 7 installed on system?

i using windows 7 , have found line in catalina.bat placing path of java 7 installation directory in place of java_home isn't working

if ""%1"" == ""debug"" goto use_jdk echo using jre_home:        "%jre_home%" goto java_dir_displayed :use_jdk echo using java_home:       "%java_home%" 

found solution here

just added new batch file setenv.bat , saved file in tomcat_installation_directory\bin\setenv.bat or %catalina_base%/bin/setenv.bat , restarted tomcat server.

catalina.bat should have setlocal endlocal

which means when batch file runs uses java_home on exiting not change system variable other apps

changing bat file should work


Comments

Popular posts from this blog

java - How to specify maven bin in eclipse maven plugin? -

single sign on - Logging into Plone site with credentials passed through HTTP -

php - Why does AJAX not process login form? -