Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

problem setting JAVA_OPTS

 
vik ar
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 13062
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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



to

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

bill
 
vik ar
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 18165
53
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic