[JPP-Devel] How to test OJ with Java 12?
Hi, I would like to test if OpenJUMP might have problems with the newest Java versions but I could not make it start at all. I had a working bat file for Java 10 to start with but editing JAVA_PATH was not enough. I start to feel that the genius system that detects the Java version is getting quite complicated to follow and debug with the new release schedule with a new version every sixth month. I downloaded the new Java binaries I wanted to test from here: https://download.java.net/java/early_access/jdk12/8/GPL/openjdk-12-ea+8_windows-x64_bin.zip I placed the binaries into directory c:\java\jdk-12 and used that as a value of JAVA_HOME but OJ does not start, nor does it print any information about why not. -Jukka Rahkonen- -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] NoClassDefFoundError when starting OJ r5929 with JDK 12
Hi thanks, I'll probably add jaxb as a dependency (about 1.4Mb) as it would be a bit of work to switch to java2xml. Michaël Le 27/08/2018 à 15:41, edgar.sol...@web.de a écrit : On 27.08.2018 15:00, Rahkonen Jukka (MML) wrote: Hi, OpenJUMP does start with JDK 12 but it throws this error java.lang.NoClassDefFoundError: javax/xml/bind/UnmarshalException at org.openjump.ext.viewmanager.ViewManagerExtension.configure(ViewManagerExtension.java:21) at com.vividsolutions.jump.workbench.plugin.PlugInManager.loadConfigurations(PlugInManager.java:214) at com.vividsolutions.jump.workbench.plugin.PlugInManager.load(PlugInManager.java:194) at com.vividsolutions.jump.workbench.JUMPWorkbench.main(JUMPWorkbench.java:457) at com.vividsolutions.jump.workbench.JUMPWorkbench.main(JUMPWorkbench.java:386) Error does not happen with Java 8. OpenJUMP does work despite the error message so probably it affects only the ViewManagerExtension. JDK version: https://download.java.net/java/early_access/jdk12/8/GPL/openjdk-12-ea+8_windows-x64_bin.zip yeah. that needs to be fixed in ViewManager, probably by Mike as he created the extension. it uses code (javax.xml.bind) which is not part of the jdk anymore since java 11. replacing it with one of the other xml implementations we use should be not to hard. Mike? do you need a ticket?.. ede -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] NoClassDefFoundError when starting OJ r5929 with JDK 12
1.4Megs sees kind of a waste just for this function. please give me some time to evaluate first.. ede On 8/27/2018 23:52, Michaël Michaud wrote: > Hi thanks, > > I'll probably add jaxb as a dependency (about 1.4Mb) as it would be a bit of > work to switch to java2xml. > > Michaël > > > Le 27/08/2018 à 15:41, edgar.sol...@web.de a écrit : >> On 27.08.2018 15:00, Rahkonen Jukka (MML) wrote: >>> Hi, >>> >>> OpenJUMP does start with JDK 12 but it throws this error >>> >>> java.lang.NoClassDefFoundError: javax/xml/bind/UnmarshalException >>> at >>> org.openjump.ext.viewmanager.ViewManagerExtension.configure(ViewManagerExtension.java:21) >>> at >>> com.vividsolutions.jump.workbench.plugin.PlugInManager.loadConfigurations(PlugInManager.java:214) >>> at >>> com.vividsolutions.jump.workbench.plugin.PlugInManager.load(PlugInManager.java:194) >>> at >>> com.vividsolutions.jump.workbench.JUMPWorkbench.main(JUMPWorkbench.java:457) >>> at >>> com.vividsolutions.jump.workbench.JUMPWorkbench.main(JUMPWorkbench.java:386) >>> >>> Error does not happen with Java 8. OpenJUMP does work despite the error >>> message so probably it affects only the ViewManagerExtension. >>> JDK version: >>> https://download.java.net/java/early_access/jdk12/8/GPL/openjdk-12-ea+8_windows-x64_bin.zip >>> >> yeah. that needs to be fixed in ViewManager, probably by Mike as he created >> the extension. it uses code (javax.xml.bind) which is not part of the jdk >> anymore since java 11. replacing it with one of the other xml >> implementations we use should be not to hard. >> >> Mike? do you need a ticket?.. ede >> > -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] How to test OJ with Java 12?
On 27.08.2018 10:55, Rahkonen Jukka (MML) wrote: > Hi, > > I would like to test if OpenJUMP might have problems with the newest Java > versions but I could not make it start at all. I had a working bat file for > Java 10 to start with but editing JAVA_PATH was not enough. I start to feel > that the genius system that detects the Java version is getting quite > complicated to follow and debug with the new release schedule with a new > version every sixth month. > > I downloaded the new Java binaries I wanted to test from here: > https://download.java.net/java/early_access/jdk12/8/GPL/openjdk-12-ea+8_windows-x64_bin.zip > I placed the binaries into directory c:\java\jdk-12 and used that as a value > of JAVA_HOME but OJ does not start, nor does it print any information about > why not. the version output is different and hence the parsing has to be adapted. >java -version java version "1.8.0_151" Java(TM) SE Runtime Environment (build 1.8.0_151-b12) Java HotSpot(TM) 64-Bit Server VM (build 25.151-b12, mixed mode) >d:\jdk-12\bin\java -version openjdk version "12-ea" 2019-03-19 OpenJDK Runtime Environment 19.3 (build 12-ea+8) OpenJDK 64-Bit Server VM 19.3 (build 12-ea+8, mixed mode) will have a look at it ..ede -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] How to test OJ with Java 12?
On 27.08.2018 12:34, edgar.sol...@web.de wrote: > On 27.08.2018 10:55, Rahkonen Jukka (MML) wrote: >> Hi, >> >> I would like to test if OpenJUMP might have problems with the newest Java >> versions but I could not make it start at all. I had a working bat file for >> Java 10 to start with but editing JAVA_PATH was not enough. I start to feel >> that the genius system that detects the Java version is getting quite >> complicated to follow and debug with the new release schedule with a new >> version every sixth month. >> >> I downloaded the new Java binaries I wanted to test from here: >> https://download.java.net/java/early_access/jdk12/8/GPL/openjdk-12-ea+8_windows-x64_bin.zip >> I placed the binaries into directory c:\java\jdk-12 and used that as a value >> of JAVA_HOME but OJ does not start, nor does it print any information about >> why not. > > the version output is different and hence the parsing has to be adapted. > >> java -version > java version "1.8.0_151" > Java(TM) SE Runtime Environment (build 1.8.0_151-b12) > Java HotSpot(TM) 64-Bit Server VM (build 25.151-b12, mixed mode) > >> d:\jdk-12\bin\java -version > openjdk version "12-ea" 2019-03-19 > OpenJDK Runtime Environment 19.3 (build 12-ea+8) > OpenJDK 64-Bit Server VM 19.3 (build 12-ea+8, mixed mode) > > will have a look at it ..ede Jukka, can you try r5929 ? ..ede -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
[JPP-Devel] NoClassDefFoundError when starting OJ r5929 with JDK 12
Hi, OpenJUMP does start with JDK 12 but it throws this error java.lang.NoClassDefFoundError: javax/xml/bind/UnmarshalException at org.openjump.ext.viewmanager.ViewManagerExtension.configure(ViewManagerExtension.java:21) at com.vividsolutions.jump.workbench.plugin.PlugInManager.loadConfigurations(PlugInManager.java:214) at com.vividsolutions.jump.workbench.plugin.PlugInManager.load(PlugInManager.java:194) at com.vividsolutions.jump.workbench.JUMPWorkbench.main(JUMPWorkbench.java:457) at com.vividsolutions.jump.workbench.JUMPWorkbench.main(JUMPWorkbench.java:386) Error does not happen with Java 8. OpenJUMP does work despite the error message so probably it affects only the ViewManagerExtension. JDK version: https://download.java.net/java/early_access/jdk12/8/GPL/openjdk-12-ea+8_windows-x64_bin.zip -Jukka Rahkonen- -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
[JPP-Devel] SVN: [5929] core/trunk
Revision: 5929 http://sourceforge.net/p/jump-pilot/code/5929 Author: edso Date: 2018-08-27 12:20:07 + (Mon, 27 Aug 2018) Log Message: --- rework version detection for 'openjdk version "12-ea"' Modified Paths: -- core/trunk/ChangeLog core/trunk/scripts/oj_windows.bat Modified: core/trunk/ChangeLog === --- core/trunk/ChangeLog2018-08-25 16:46:57 UTC (rev 5928) +++ core/trunk/ChangeLog2018-08-27 12:20:07 UTC (rev 5929) @@ -3,6 +3,9 @@ # 2. make sure that lines break at 80 chars for constricted display situations #< 80 chars --># +2018-08-27 ede + * oj_windows.bat rework version detection for 'openjdk version "12-ea"' + 2018-08-24 mmichaud * Improve LayerView naming and saving, allow views based on view @@ -663,7 +666,7 @@ * bugfix : old postgis driver could not save layer with pk != dbid 2016-09-01 Giuseppe Aruta - * File projection detection: Added IGNF and IGN G\xE9oportail codes + * File projection detection: Added IGNF and IGN G�oportail codes * File projection detection: Added measure units 2016-07-18 ede @@ -1070,7 +1073,7 @@ - polygon width - polygon length - circularity (Miller) -- compacity (Grav\xE9lius) +- compacity (Grav�lius) 2015-06-26 bertazza * Raster styles: some bugs fixed. @@ -2731,7 +2734,7 @@ * Finish to fix 3513864 : add an icon to RasterImageLayer 2012-04-02 ede - * Finish 3510778 with the help of Larry (Michaa\xBF\xBDl's fix was inefficient) + * Finish 3510778 with the help of Larry (Michaa��l's fix was inefficient) * workaround for bug http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7122141 and FeatureInstaller cleaning Modified: core/trunk/scripts/oj_windows.bat === --- core/trunk/scripts/oj_windows.bat 2018-08-25 16:46:57 UTC (rev 5928) +++ core/trunk/scripts/oj_windows.bat 2018-08-27 12:20:07 UTC (rev 5929) @@ -99,11 +99,12 @@ call :concat "; " %%i for /F "tokens=1-3 delims= " %%a in ("%%i") do ( rem -- memorize version number string -- - if "%%a"=="java" ( - if "%%b"=="version" ( + if "%%a"=="java" if "%%b"=="version" ( set JAVAVER=%%c ) - ) + if /I "%%a"=="openjdk" if "%%b"=="version" ( + set JAVAVER=%%c + ) ) ) set "JAVA_VERSIONSTRING=%concat%" @@ -118,17 +119,24 @@ rem @echo Output: %JAVAVER% for /f "delims=. tokens=1-3" %%v in ("%JAVAVER%") do ( +if [%%v] neq [] call :extractLeadingNumbers "%%v" major rem @echo Major: %%v -set JAVAVER_MAJOR=%%v +if [%%w] neq [] call :extractLeadingNumbers "%%w" minor rem @echo Minor: %%w -set JAVAVER_MINOR=%%w -rem @echo Build: %%x -set JAVAVER_PATCH=%%x +if [%%x] neq [] call :extractLeadingNumbers "%%x" patch +rem @echo Patch: %%x ) +if [%major%] neq [] ( set "JAVAVER_MAJOR=%major%" ) else ( +echo ERROR: Could not detect java version number. +set "ERROR=1" +goto :end +) +if [%minor%] neq [] ( set "JAVAVER_MINOR=%minor%" ) else ( set "JAVAVER_MINOR=0" ) +if [%patch%] neq [] ( set "JAVAVER_PATCH=%patch%" ) else ( set "JAVAVER_PATCH=0" ) -rem -- java9+ needs some packages explicitly added/exported -- -set /a JAVAVER_NUMBER=JAVAVER_MAJOR -if %JAVAVER_NUMBER% geq 9 ( + +rem -- java9-java11 need some packages explicitly added/exported -- +if %JAVAVER_MAJOR% geq 9 if %JAVAVER_MAJOR% lss 12 ( 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 ^ @@ -388,5 +396,20 @@ set "JAVA_MEM_STRING=Xmx to %value%M" goto:eof +rem This extracts the first numerical series in the input string +:extractLeadingNumbers inputString returnVar +setlocal enableextensions disabledelayedexpansion +rem Retrieve the string from arguments +set "string=%~1" +rem Use numbers as delimiters (so they are removed) to retrieve the rest of the string +for /f "tokens=1-2 delims=0123456789 " %%a in ("%string:^"=%") do set "delimiters=%%a%%b" + +rem Use the retrieved characters as delimiters to retrieve the first numerical serie +for /f "delims=%delimiters% " %%a in ("%string:^"=%") do set "numbers=%%a" + +rem Return the found data to caller and leave +endlocal & set "%~2=%numbers%" +goto :eof + :eof -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] How to test OJ with Java 12?
Hi, Great, r5929 starts with JDK 12. The icons and map look somehow crispy and ugly on my computer but some few functions which I tested seemed all to run fine. -Jukka- -Alkuperäinen viesti- Lähettäjä: edgar.sol...@web.de [mailto:edgar.sol...@web.de] Lähetetty: 27. elokuuta 2018 15:21 Vastaanottaja: jump devel Aihe: Re: [JPP-Devel] How to test OJ with Java 12? On 27.08.2018 12:34, edgar.sol...@web.de wrote: > On 27.08.2018 10:55, Rahkonen Jukka (MML) wrote: >> Hi, >> >> I would like to test if OpenJUMP might have problems with the newest Java >> versions but I could not make it start at all. I had a working bat file for >> Java 10 to start with but editing JAVA_PATH was not enough. I start to feel >> that the genius system that detects the Java version is getting quite >> complicated to follow and debug with the new release schedule with a new >> version every sixth month. >> >> I downloaded the new Java binaries I wanted to test from here: >> https://download.java.net/java/early_access/jdk12/8/GPL/openjdk-12-ea >> +8_windows-x64_bin.zip I placed the binaries into directory >> c:\java\jdk-12 and used that as a value of JAVA_HOME but OJ does not start, >> nor does it print any information about why not. > > the version output is different and hence the parsing has to be adapted. > >> java -version > java version "1.8.0_151" > Java(TM) SE Runtime Environment (build 1.8.0_151-b12) Java HotSpot(TM) > 64-Bit Server VM (build 25.151-b12, mixed mode) > >> d:\jdk-12\bin\java -version > openjdk version "12-ea" 2019-03-19 > OpenJDK Runtime Environment 19.3 (build 12-ea+8) OpenJDK 64-Bit Server > VM 19.3 (build 12-ea+8, mixed mode) > > will have a look at it ..ede Jukka, can you try r5929 ? ..ede -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
[JPP-Devel] SVN: [5931] core/trunk
Revision: 5931 http://sourceforge.net/p/jump-pilot/code/5931 Author: edso Date: 2018-08-27 13:53:00 + (Mon, 27 Aug 2018) Log Message: --- remove javax.se.ee when run w/ java 11+ on linux/mac Modified Paths: -- core/trunk/ChangeLog core/trunk/scripts/oj_linux.sh Modified: core/trunk/ChangeLog === --- core/trunk/ChangeLog2018-08-27 13:43:30 UTC (rev 5930) +++ core/trunk/ChangeLog2018-08-27 13:53:00 UTC (rev 5931) @@ -5,6 +5,7 @@ 2018-08-27 ede * oj_windows.bat rework version detection for 'openjdk version "12-ea"' + * linux/mac starter remove javax.se.ee when run w/ java 11+ 2018-08-24 mmichaud * Improve LayerView naming and saving, allow views based on view Modified: core/trunk/scripts/oj_linux.sh === --- core/trunk/scripts/oj_linux.sh 2018-08-27 13:43:30 UTC (rev 5930) +++ core/trunk/scripts/oj_linux.sh 2018-08-27 13:53:00 UTC (rev 5931) @@ -242,9 +242,13 @@ 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 --add-modules java.se.ee \ +--add-exports java.desktop/com.sun.imageio.spi=ALL-UNNAMED \ $JAVA_OPTS" fi +# java ee was removed from jdk in java 11 +if awk "BEGIN{if( $JAVA_VERSION >= 9 && $JAVA_VERSION < 11 )exit 0;else exit 1}"; then + JAVA_OPTS="--add-modules java.se.ee $JAVA_OPTS" +fi # in case some additional archives were placed in native dir inbetween extract_libs "$JUMP_NATIVE_DIR" -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
[JPP-Devel] SVN: [5932] core/trunk
Revision: 5932 http://sourceforge.net/p/jump-pilot/code/5932 Author: edso Date: 2018-08-27 15:25:30 + (Mon, 27 Aug 2018) Log Message: --- rework version detection for 'openjdk version "12-ea"' in start scripts Modified Paths: -- core/trunk/ChangeLog core/trunk/scripts/oj_linux.sh Modified: core/trunk/ChangeLog === --- core/trunk/ChangeLog2018-08-27 13:53:00 UTC (rev 5931) +++ core/trunk/ChangeLog2018-08-27 15:25:30 UTC (rev 5932) @@ -4,7 +4,7 @@ #< 80 chars --># 2018-08-27 ede - * oj_windows.bat rework version detection for 'openjdk version "12-ea"' + * rework version detection for 'openjdk version "12-ea"' in start scripts * linux/mac starter remove javax.se.ee when run w/ java 11+ 2018-08-24 mmichaud Modified: core/trunk/scripts/oj_linux.sh === --- core/trunk/scripts/oj_linux.sh 2018-08-27 13:53:00 UTC (rev 5931) +++ core/trunk/scripts/oj_linux.sh 2018-08-27 15:25:30 UTC (rev 5932) @@ -167,7 +167,7 @@ # java version check JAVA_VERSIONSTRING="$("$JAVA" -version 2>&1)" -JAVA_VERSION=$(echo $JAVA_VERSIONSTRING | awk -F'[ \056]' '{gsub(/["\047]+/,"")}/version [0-9]+\.[0-9]+/{print $3"."$4; exit}' ) +JAVA_VERSION=$( echo $JAVA_VERSIONSTRING | awk 'BEGIN{done=0}{gsub(/["\047]+/,"")}/[a-zA-Z]+ version [0-9]+/{split($3,a,"[^0-9]"); if(match(a[2],/^[0-9]+$/)){print a[1]"."a[2]}else{print a[1]".0"}; done=1}END{if(!done)exit 1}' ) JAVA_ARCH=$(echo $JAVA_VERSIONSTRING | grep -q -i 64-bit && echo x64 || echo x86) JAVA_NEEDED="1.6" if ! is_decimal "$JAVA_VERSION"; then -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] NoClassDefFoundError when starting OJ r5929 with JDK 12
Hi Ede, You can have a look at ViewManager in the PlugIn repository. May not be so difficult to change but many classes have to be serialiable and configured through java2xml files. At the time I choosed jaxb, I may have tried java2xml and encountered some difficulties to modelize heritage through java2xml, but I'm not sure. When I wrote it, i was quite familiar with jaxb and it seemed to me that it was a more modern (annotation-based), more standardized (available in jre) and more flexible way to serialize classes to xml than java2xml, but I like light-weight plugins and I admit that 1.4Mo is a bit expensive for such a plugin. Also it it is difficult to make it lighter, we can also remove it from the PLUS distro. Michaël Le 28/08/2018 à 00:12, edgar.sol...@web.de a écrit : 1.4Megs sees kind of a waste just for this function. please give me some time to evaluate first.. ede On 8/27/2018 23:52, Michaël Michaud wrote: Hi thanks, I'll probably add jaxb as a dependency (about 1.4Mb) as it would be a bit of work to switch to java2xml. Michaël Le 27/08/2018 à 15:41, edgar.sol...@web.de a écrit : On 27.08.2018 15:00, Rahkonen Jukka (MML) wrote: Hi, OpenJUMP does start with JDK 12 but it throws this error java.lang.NoClassDefFoundError: javax/xml/bind/UnmarshalException at org.openjump.ext.viewmanager.ViewManagerExtension.configure(ViewManagerExtension.java:21) at com.vividsolutions.jump.workbench.plugin.PlugInManager.loadConfigurations(PlugInManager.java:214) at com.vividsolutions.jump.workbench.plugin.PlugInManager.load(PlugInManager.java:194) at com.vividsolutions.jump.workbench.JUMPWorkbench.main(JUMPWorkbench.java:457) at com.vividsolutions.jump.workbench.JUMPWorkbench.main(JUMPWorkbench.java:386) Error does not happen with Java 8. OpenJUMP does work despite the error message so probably it affects only the ViewManagerExtension. JDK version: https://download.java.net/java/early_access/jdk12/8/GPL/openjdk-12-ea+8_windows-x64_bin.zip yeah. that needs to be fixed in ViewManager, probably by Mike as he created the extension. it uses code (javax.xml.bind) which is not part of the jdk anymore since java 11. replacing it with one of the other xml implementations we use should be not to hard. Mike? do you need a ticket?.. ede -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] NoClassDefFoundError when starting OJ r5929 with JDK 12
On 27.08.2018 15:00, Rahkonen Jukka (MML) wrote: > Hi, > > OpenJUMP does start with JDK 12 but it throws this error > > java.lang.NoClassDefFoundError: javax/xml/bind/UnmarshalException >at > org.openjump.ext.viewmanager.ViewManagerExtension.configure(ViewManagerExtension.java:21) >at > com.vividsolutions.jump.workbench.plugin.PlugInManager.loadConfigurations(PlugInManager.java:214) >at > com.vividsolutions.jump.workbench.plugin.PlugInManager.load(PlugInManager.java:194) >at > com.vividsolutions.jump.workbench.JUMPWorkbench.main(JUMPWorkbench.java:457) >at > com.vividsolutions.jump.workbench.JUMPWorkbench.main(JUMPWorkbench.java:386) > > Error does not happen with Java 8. OpenJUMP does work despite the error > message so probably it affects only the ViewManagerExtension. > JDK version: > https://download.java.net/java/early_access/jdk12/8/GPL/openjdk-12-ea+8_windows-x64_bin.zip > yeah. that needs to be fixed in ViewManager, probably by Mike as he created the extension. it uses code (javax.xml.bind) which is not part of the jdk anymore since java 11. replacing it with one of the other xml implementations we use should be not to hard. Mike? do you need a ticket?.. ede -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
[JPP-Devel] SVN: [5930] core/trunk/scripts/oj_windows.bat
Revision: 5930 http://sourceforge.net/p/jump-pilot/code/5930 Author: edso Date: 2018-08-27 13:43:30 + (Mon, 27 Aug 2018) Log Message: --- finetune jre parameters for modern jre's Modified Paths: -- core/trunk/scripts/oj_windows.bat Modified: core/trunk/scripts/oj_windows.bat === --- core/trunk/scripts/oj_windows.bat 2018-08-27 12:20:07 UTC (rev 5929) +++ core/trunk/scripts/oj_windows.bat 2018-08-27 13:43:30 UTC (rev 5930) @@ -136,12 +136,16 @@ rem -- java9-java11 need some packages explicitly added/exported -- -if %JAVAVER_MAJOR% geq 9 if %JAVAVER_MAJOR% lss 12 ( +if %JAVAVER_MAJOR% geq 9 ( 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 --add-modules java.se.ee +--add-exports java.desktop/com.sun.imageio.spi=ALL-UNNAMED ) +rem -- java ee was removed from jdk in java 11 +if %JAVAVER_MAJOR% geq 9 if %JAVAVER_MAJOR% lss 11 ( + set JAVA_OPTS=%JAVA_OPTS% --add-modules java.se.ee +) rem -- detect if java is 64bit -- for /f "delims=" %%v in ('echo "%JAVA_VERSIONSTRING%"^|findstr /I "64-Bit"') do ( -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel