This week's giveaway is in the EJB and other Java EE Technologies forum. We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan 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