This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Hi I am not able to start my tomcat server.I am getting the following error in console.
The JAVA_HOME environment variable is not defined This environment variable is needed to run this program Using CATALINA_BASE: .. Using CATALINA_HOME: .. Using CATALINA_TMPDIR: ..\temp Using JAVA_HOME: '-Dsun.io.useCanonCaches' is not recognized as an internal or external command, operable program or batch file.
'-Dsun.io.useCanonCaches' is not recognized as an internal or external command, operable program or batch file.
That sounds like an attempt has been made to define a system property value using the -D syntax in the command line. But it looks like it has been defined in the wrong place. It should be a JAVA_OPTS variable Look for that text in startup.bat or catalina.bat
Here is an example of setting a system property in Catalina.bat