Revision: 5360
http://sourceforge.net/p/jump-pilot/code/5360
Author: edso
Date: 2017-03-07 15:23:20 +0000 (Tue, 07 Mar 2017)
Log Message:
-----------
resolve some invocation errors due to java9's new security model by exporting
the needed entries
Modified Paths:
--------------
core/trunk/scripts/oj_windows.bat
Modified: core/trunk/scripts/oj_windows.bat
===================================================================
--- core/trunk/scripts/oj_windows.bat 2017-03-06 19:24:33 UTC (rev 5359)
+++ core/trunk/scripts/oj_windows.bat 2017-03-07 15:23:20 UTC (rev 5360)
@@ -76,6 +76,27 @@
set "JAVA_VERSIONSTRING=%concat%"
echo %JAVA_VERSIONSTRING%
+rem -- get java version (for processing) --
+
+for /f "tokens=3" %%g in ('java -version 2^>^&1 ^| findstr /i "version"') do (
+ rem @echo Output: %%g
+ set JAVAVER=%%g
+)
+set JAVAVER=%JAVAVER:"=%
+rem @echo Output: %JAVAVER%
+
+for /f "delims=. tokens=1-3" %%v in ("%JAVAVER%") do (
+ rem @echo Major: %%v
+ set JAVAVER_MAJOR=%%v
+ rem @echo Minor: %%w
+ set JAVAVER_MINOR=%%w
+ rem @echo Build: %%x
+ set JAVAVER_PATCH=%%x
+)
+
+rem -- explicitly export some packages as needed since java9 --
+if /i "%JAVAVER_MAJOR%"=="9-ea" set JAVA_OPTS=%JAVA_OPTS% --add-exports
java.base/jdk.internal.loader=ALL-UNNAMED --add-exports
java.desktop/com.sun.java.swing.plaf.windows=ALL-UNNAMED --add-exports
java.desktop/com.sun.java.swing.plaf.motif=ALL-UNNAMED --add-exports
java.desktop/com.sun.imageio.spi=ALL-UNNAMED
+
rem -- detect if java is 64bit --
for /f "delims=" %%v in ('echo "%JAVA_VERSIONSTRING%"^|findstr /I "64-Bit"')
do (
set JAVA_X64=64
------------------------------------------------------------------------------
Announcing the Oxford Dictionaries API! The API offers world-renowned
dictionary content that is easy and intuitive to access. Sign up for an
account today to start using our lexical data to power your apps and
projects. Get started today and enter our developer competition.
http://sdm.link/oxford
_______________________________________________
Jump-pilot-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel