Meaningless Drivel is fun!*
The moose likes Tomcat and the fly likes problem setting JAVA_OPTS Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "problem setting JAVA_OPTS" Watch "problem setting JAVA_OPTS" New topic

problem setting JAVA_OPTS

vik ar
Ranch Hand

Joined: Jul 31, 2009
Posts: 104
Hi. I'm trying to set JAVA_OPTS in catalina.bat as follows:

However when I double click startup.bat a command window opens and shuts immediately???
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 12769
You need to execute startup.bat from an open command prompt to see what is happening.

If another window opens and closes immediately you should change the last executable line of startup.bat from


so that catalina.bat will run in the same window and thus show the real error.

vik ar
Ranch Hand

Joined: Jul 31, 2009
Posts: 104
ok thanks bill. after doing what you said I am getting:

Please note when I do not add JAVA_OPTS tomcat starts up fine.

Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16019

Try replacing all the backslashes in your directory paths with "real" (forward) slashes. Backslash in Unix/Java is an escape character, so it's usually safer (and more conventient) to code filepaths in Unix form even when running Windows.

Customer surveys are for companies who didn't pay proper attention to begin with.
wood burning stoves
subject: problem setting JAVA_OPTS