Shri S Softwares
Shri S Softwares

Reputation: 1529

how to set JVM Property in tomcat 8

Can you please advice how to set JVM Property in tomcat 8 ? I need to set spring.profiles.active to enable profile .

I tried to find out option to set JVM profile in tomcat admin page but this doesn't seems to be an option ...

thanks in advance ...

Upvotes: 0

Views: 277

Answers (2)

Shri S Softwares
Shri S Softwares

Reputation: 1529

never mind . just got it . In eclipse , we have option to specify JVM property in Run >> Run Configurations.. menu . Please see below screen shot -

https://i.sstatic.net/Hfsfp.png

Upvotes: 1

Vladimir Nabokov
Vladimir Nabokov

Reputation: 1907

you can add in startup.bat that:

On windows:

set JAVA_HOME = /path/to/jdk set PATH=%JAVA_HOME%/bin;%PATH%

On linux:

export JAVA_HOME = /path/to/jdk export PATH=$JAVA_HOME/bin:$PATH

Upvotes: 0

Related Questions