I haven't tried with Tomcat 7 but in TomCat 6 you can set the environment variable JAVA_OPTS to any JVM options you wanted in the environment of the session used to start TomCat.
or you could add the setting of JAVA_OPTS to the start-up.sh script.
I imagine this should also work for TomCat 7
Thanks for your help!
But when I set JAVA_OPTS=-d64 in startup.sh, the tomcat could not start properly.
I tried to set environment variable JAVA_OPTS in /etc/profile or add the setting of JAVA_OPTS to catalina.sh script, I got another Exception:
org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Problems with loading native library/missing methods: no ttJdbcCS in java.library.path)
Thats because the TimesTen JDBC driver includes native code. As well as '-d64' you also need to set '-djava.library.path=<TimesTen_install_dir>/lib' in JAVA_OPTS.
Thank you very much for you help.
I've already fixed this problem. I got this Exception Because I didn't set <TimesTen_install_dir>/lib in LD_LIBRARY_PATH_64 environment variable.
Yes, that will fix this issue on Linux but it doesn't work on all platforms. The fix that adds -Djava.library.path=<TimesTen_install_dir>/lib to the JVM options should work on all platforms.