Skip to content

Commit

Permalink
Suppress Nashorn deprecation warnings (#1086)
Browse files Browse the repository at this point in the history
Suppresses the Nashorn deprecation warnings that show on startup on newer Java versions:

> Warning: Nashorn engine is planned to be removed from a future JDK release

See also: https://bugs.openjdk.java.net/browse/JDK-8210140

Signed-off-by: Wouter Born <[email protected]>
  • Loading branch information
wborn committed May 23, 2020
1 parent 6512718 commit 7bc635e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions distributions/openhab/src/main/resources/bin/setenv
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ export JAVA_OPTS="${JAVA_OPTS}
-Djava.library.path=${OPENHAB_USERDATA}/tmp/lib
-Djetty.host=${HTTP_ADDRESS}
-Djetty.http.compliance=RFC2616
-Dnashorn.args=--no-deprecation-warning
-Dorg.ops4j.pax.web.listening.addresses=${HTTP_ADDRESS}
-Dorg.osgi.service.http.port=${HTTP_PORT}
-Dorg.osgi.service.http.port.secure=${HTTPS_PORT}"
Expand Down
1 change: 1 addition & 0 deletions distributions/openhab/src/main/resources/bin/setenv.bat
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ set JAVA_OPTS=%JAVA_OPTS% ^
-Djava.library.path=%OPENHAB_USERDATA%\tmp\lib ^
-Djetty.host=%HTTP_ADDRESS% ^
-Djetty.http.compliance=RFC2616 ^
-Dnashorn.args=--no-deprecation-warning ^
-Dorg.ops4j.pax.web.listening.addresses=%HTTP_ADDRESS% ^
-Dorg.osgi.service.http.port=%HTTP_PORT% ^
-Dorg.osgi.service.http.port.secure=%HTTPS_PORT%
Expand Down

1 comment on commit 7bc635e

@openhab-bot
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This commit has been mentioned on openHAB Community. There might be relevant details there:

https://community.openhab.org/t/java-on-non-openhabian/99904/19

Please sign in to comment.