You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by James Pretorius <ja...@yahoo.co.uk> on 2011/07/07 12:53:18 UTC
Re: Installing Tomcat as a Windows Service - JvmOptions &
semicolons
Wrap the semicolon in single quotes
Example below
--JvmOptions=-Dcatalina.home="%CATALINA_HOME%";-Dcatalina.base="%CATALINA_BASE%";-Djava.library.path="C:\example\dir1"';'"C:\example\dir2"
Peter Lombardo wrote:
>
> I'm having a bit of trouble configuring the jvm options as I'm
> installing Tomcat as a Windows Service.
>
> I need to set:
> java.library.path=C:\example\dir1;C:\example\dir2;C:\example\dir3
>
> I pass this to the update service command (below) but the JvmOptions
> command line option is parsing the semicolons as separated JVM
> options.
>
> "%EXECUTABLE%" //US//%SERVICE_NAME% ++JvmOptions
> "-Djava.library.path=C:\example\dir1;C:\example\dir2;C:\example\dir3"
>
> The instructions state:
> --JvmOptions List of options in the form of -D or -X that
> will be passed to the JVM. The options are separated using either # or
> ; characters.
>
> If a JVM option has semicolons in it, how can I pass those as literals
> so that JvmOptions won't think it's a subsequent option?
>
> Thanks ahead of time for any help/input.
>
>
> --
> Peter Lombardo
> pglombardo@gmail.com
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
>
--
View this message in context: http://old.nabble.com/Installing-Tomcat-as-a-Windows-Service---JvmOptions---semicolons-tp9504766p32012228.html
Sent from the Tomcat - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org