try without quotes

set JAVA_OPTS=-Dapplication.home=E:\\webapp -Dfilepath=D:\\newFolder\\conf\\con.properties

should work

Answer from Evgeniy Dorofeev on Stack Overflow
🌐
Metabase
discourse.metabase.com › t › how-to-add-multiple-java-opts-values-in-docker-env › 26409
How to add multiple `JAVA_OPTS` values in docker env - Metabase Discussion
August 11, 2023 - Hi All, I want to add multiple values in docker env JAVA_OPTS. Is below way correct ? -e "JAVA_OPTS=-Xmx4g -Dlog4j.configurationFile=file:///tmp/log_config.xml" First value is -Xmx4g for jvm ram limit Second is -Dlog4j.configurationFile=file:///tmp/log_config.xml for custom log config.
🌐
GitHub
github.com › jenkinsci › docker › issues › 202
Unable to pass multiple parameters through JAVA_OPTS · Issue #202 · jenkinsci/docker
February 22, 2016 - Related to #195 and #194. When trying to execute following command docker run -v ~/jenkins_home:/var/jenkins_home -p 80:8080 -p 50000:50000 -d --env JAVA_OPTS="-Xmx1024m -Duser.timezone=Europe...
Author   jenkinsci
🌐
GitHub
github.com › jenkinsci › docker › issues › 195
Multiple JAVA_OPTS or JENKINS_OPTS not handled correctly · Issue #195 · jenkinsci/docker
Running following commands against the latest image (1.642.1) does not work docker run -it --rm -e JENKINS_OPTS="--version --prefix=/jenkins" jenkins or docker run -it --rm -e JAVA_OPTS="-Xmx1024m -Dfoo=bar" jenkins It think it's either ...
Author   jenkinsci
🌐
DEV Community
dev.to › sunnybhambhani › different-environment-variables-available-in-java-101o
Different environment variables available in Java - DEV Community
January 3, 2026 - My initial impression and approach ... the JAVA_OPTS environment variable, and that when the application runs, it will automatically take that into account, and my job is done. But unfortunately, I was wrong, and after setting up that environment value with the intended value, it didn't work. The JVM was not picking that up, and I was really reluctant to hard-code that. Later on, I found there are multiple other environment ...
🌐
JBoss.org
developer.jboss.org › thread › 261045
How to provide different JAVA_OPTS for differen...| JBoss.org Content Archive (Read Only)
July 6, 2015 - During deployment, I copy the war file, I set up the JAVA_OPTS which are taken as an input and run standalone.sh.
🌐
Red Hat
access.redhat.com › discussions › 6878141
Red Hat Customer Portal - Access to 24x7 support and knowledge
April 4, 2022 - We have over 50 JVMs. There are Java options that are common to all the JVMs and then there are ones specific to a JVM. We are looking for recommendations that allow us to have a single entity where all the common options are defined and then an entity for each JVM that has specific options.
🌐
Informatica Knowledge
knowledge.informatica.com › s › article › 134741
Support
August 9, 2024 - Loading · ×Sorry to interrupt · Refresh
Find elsewhere
🌐
Java in&Out Blog
manismaran.wordpress.com › java_opts-java_opts-environment-variable-linux-java_opts-how-to-set-java_opts
java_opts + java_opts environment variable+ Linux java_opts+ how to set java_opts – Java in&Out Blog
March 22, 2016 - JVM Options on Windows (64 bit) set JAVA_OPTS=%JAVA_OPTS% -Xms1024m -Xmx2048m -XX:PermSize=32m set JAVA_OPTS=%JAVA_OPTS% -XX:MaxPermSize=512m -Xss2m -XX:+UseConcMarkSweepGC set JAVA_OPTS=%JAVA_OPTS% -XX:+CMSClassUnloadingEnabled JVM Options on Linux and Mac OSX (64 bit) export JAVA_OPTS=-Xms1024m -Xmx8192m -XX:PermSize=32m -XX:MaxPermSize=8192m or export JAVA_OPTS="$JAVA_OPTS -Xms1024m -Xmx8192m -XX:PermSize=32m -XX:MaxPermSize=8192m" export JAVA_OPTS="$JAVA_OPTS -Xms1024m -Xmx2048m -XX:PermSize=32m" export JAVA_OPTS="$JAVA_OPTS -XX:MaxPermSize=512m -Xss2m" export JAVA_OPTS="$JAVA_OPTS -XX:+UseConcMarkSweepGC" export JAVA_OPTS="$JAVA_OPTS -XX:+CMSClassUnloadingEnabled"…
🌐
Coderanch
coderanch.com › t › 625114 › application-servers › JAVA-OPTS-Variable-Handling-Environment
JAVA_OPTS Variable Handling (Environment Var vs. System Property) [Solved] (Tomcat forum at Coderanch)
December 10, 2013 - Implementation of JAVA_OPTS is difficult to find. It's all in catalina.sh, nowhere else. My guess is that your setenv.sh is not being included/executed. Check its user/group/file permissions too. ... Karthik Shiraly wrote:JAVA_OPTS is not a variable recognized by JVM (atleast by the Oracle/Sun/OpenJDK JVM).
🌐
Baeldung
baeldung.com › home › java › core java › what is the difference between jdk_java_options and java_tool_options?
What Is the Difference Between JDK_JAVA_OPTIONS and JAVA_TOOL_OPTIONS? | Baeldung
February 28, 2025 - If we check the variable after running the command, we’ll see that JDK_JAVA_OPTIONS no longer holds a value: ... $ JAVA_TOOL_OPTIONS="-Dvar1='Hi (JAVA_TOOL_OPTIONS)' -Dvar2='There (JAVA_TOOL_OPTIONS)'" java com.baeldung.TestEnvVar Picked up JAVA_TOOL_OPTIONS: -Dvar1='Hi (JAVA_TOOL_OPTIONS)' -Dvar2='There (JAVA_TOOL_OPTIONS)' var1 = 'Hi (JAVA_TOOL_OPTIONS)' var2 = 'There (JAVA_TOOL_OPTIONS)'
🌐
Liquibase
docs.liquibase.com › concepts › connections › java-opts-environment-variable.html
What are JAVA_OPTS environment variables?
If you are using an earlier version of Liquibase, you must set them using JAVA_OPTS. For a list of available Liquibase properties, see Create and Configure a liquibase.properties File. You can set one property at a time, or set multiple properties separated by a whitespace character.
🌐
javaspring
javaspring.net › blog › how-to-add-more-than-one-parameter-to-java-tool-options
How to Add Multiple Parameters to JAVA_TOOL_OPTIONS and Verify Java Picks Them Up — javaspring.net
Recognized by the JVM, JAVA_TOOL_OPTIONS lets you define default JVM options that apply to all Java invocations (unless explicitly overridden), making it ideal for setting global or environment-wide configurations.
🌐
GitHub
github.com › cloudfoundry › java-buildpack › blob › main › docs › framework-java_opts.md
java-buildpack/docs/framework-java_opts.md at main · cloudfoundry/java-buildpack
cf set-env my-application JBP_CONFIG_JAVA_OPTS '{ from_environment: false, java_opts: ["-Xmx512m"] }' Example 3: Multiple JVM options ·
Author   cloudfoundry
🌐
ProgrammerZero Blog
programmerzero.hashnode.dev › javaopts-vs-javaoptions-vs-javatooloptions-whats-the-difference
Java ENV Variables: Key Differences - ProgrammerZero Blog
December 9, 2024 - But in larger environments, where multiple Java applications and services run simultaneously, things can get messy. A misconfigured variable or conflicting setting can turn a simple tweak into a full-blown headache. That’s why it’s important to understand the environment variables that control JVM settings: JAVA_OPTS, JAVA_OPTIONS, and JAVA_TOOL_OPTIONS.
🌐
Devgex
devgex.com › en › article › 00039899
Comprehensive Analysis of _JAVA_OPTIONS, JAVA_TOOL_OPTIONS, and JAVA_OPTS: Roles and Differences in JVM Parameter Configuration - DevGex
December 4, 2025 - In this example, although JAVA_TOOL_OPTIONS sets reasonable heap memory parameters, the excessively small initial heap size specified by _JAVA_OPTIONS—which has higher priority—ultimately causes virtual machine initialization to fail. This mechanism requires developers to carefully consider compatibility and override relationships among parameters when using multiple environment variables simultaneously.