[x3d-public] JDK 1.5 and X3DJSAIL

John Carlson yottzumm at gmail.com
Sun Nov 19 21:25:36 PST 2017


Okay, I should have realized it would work for you on Java 8. When I say source and target 1.8, here’s what I get out of exificient:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.19:test (default-test) on project exificient: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.19:test failed: There was an error in the forked process
[ERROR] java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException
[ERROR]         at java.base/java.lang.Class.getDeclaredMethods0(Native Method)
[ERROR]         at java.base/java.lang.Class.privateGetDeclaredMethods(Class.java:3139)
[ERROR]         at java.base/java.lang.Class.getMethodsRecursive(Class.java:3280)
[ERROR]         at java.base/java.lang.Class.getMethod0(Class.java:3266)
[ERROR]         at java.base/java.lang.Class.getMethod(Class.java:2063)
[ERROR]         at org.apache.maven.surefire.util.ReflectionUtils.tryGetMethod(ReflectionUtils.java:61)
[ERROR]         at org.apache.maven.surefire.common.junit3.JUnit3TestChecker.isSuiteOnly(JUnit3TestChecker.java:64)
[ERROR]         at org.apache.maven.surefire.common.junit3.JUnit3TestChecker.isValidJUnit3Test(JUnit3TestChecker.java:59)
[ERROR]         at org.apache.maven.surefire.common.junit3.JUnit3TestChecker.accept(JUnit3TestChecker.java:54)
[ERROR]         at org.apache.maven.surefire.common.junit4.JUnit4TestChecker.accept(JUnit4TestChecker.java:52)
[ERROR]         at org.apache.maven.surefire.util.DefaultScanResult.applyFilter(DefaultScanResult.java:98)
[ERROR]         at org.apache.maven.surefire.junit4.JUnit4Provider.scanClassPath(JUnit4Provider.java:294)
[ERROR]         at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:138)
[ERROR]         at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:286)
[ERROR]         at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:240)
[ERROR]         at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:121)
[ERROR] Caused by: java.lang.ClassNotFoundException: javax.xml.bind.JAXBException
[ERROR]         at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:582)
[ERROR]         at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:185)
[ERROR]         at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:496)
[ERROR]         ... 16 more
[ERROR]
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException

There appears to be a definite incompatibility between Java 9 and exificient.  Please report.  Thanks!

John
Sent from Mail for Windows 10

From: Don Brutzman
Sent: Monday, November 20, 2017 12:17 AM
To: John Carlson
Cc: x3d-public at web3d.org
Subject: Re: JDK 1.5 and X3DJSAIL

On 11/19/2017 8:34 PM, John Carlson wrote:
> I don’t like that you’re building a dependency on JDK 1.5 (4 major versions back) into the X3DJSAIL build by including exificient, Don.  Let’s try to support current or at least recent standards.  Thanks! We may have to leave NetBeans behind and go with something on the web, which I’ve been working on developing with X3DJSONLD.

Interesting.  I hadn't heard of backwards incompatibilities in Java versions to 1.5 but certainly makes sense.

The build script is written by the Exificient project.  I have adjusted my local exificient build to source 1.6 and recompiled, will ask Daniel Peintner about it on tomorrow's EXI teleconference.  Can go higher if you want, have been thinking 1.7 is OK and 1.8 recommended.

Update checked in at

https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/stylesheets/java/lib/exificient-gui-jar-with-dependencies.jar

> Let’s consider converting your Java codebase over to TypeScript (and ultimately, JavaScript).  We may have to build a web service to do conversions.

You are welcome to convert or transcode/recompile but please identify that as a different library somehow, they are different programming languages.

> In otherwords, I can’t build exificient with Java 9.  See the following errors:

I am holding back from Java 9 because Netbeans doesn't yet support... they are moving the Netbeans project to Apache, so that is a big deal that may take some time but it will land eventually.  I can't do anything that won't work with Java 8 and Netbeans.

	Using Apache NetBeans (incubating) with JDK 9
	September 29, 2017 Geertjan Wielenga
	https://jaxenter.com/netbeans/using-apache-netbeans-incubating-jdk-9

Happy to support like this, but I won't dive into JDK 9 until Netbeans comes along.


> [ERROR] COMPILATION ERROR :
> 
> [INFO] -------------------------------------------------------------
> 
> [ERROR] Source option 1.5 is no longer supported. Use 1.6 or later.
> 
> [ERROR] Target option 1.5 is no longer supported. Use 1.6 or later.
> 
> [INFO] 2 errors
> 
> [INFO] -------------------------------------------------------------
> 
> [INFO] ------------------------------------------------------------------------
> 
> [INFO] BUILD FAILURE
> 
> [INFO] ------------------------------------------------------------------------
> 
> [INFO] Total time: 0.868 s
> 
> [INFO] Finished at: 2017-11-19T23:32:43-05:00
> 
> [INFO] Final Memory: 13M/44M
> 
> [INFO] ------------------------------------------------------------------------
> 
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project exificient: Compilation failure: Compilation failure:
> 
> [ERROR] Source option 1.5 is no longer supported. Use 1.6 or later.
> 
> [ERROR] Target option 1.5 is no longer supported. Use 1.6 or later.
> 
> [ERROR] -> [Help 1]
> 
> [ERROR]
> 
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
> 
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> 
> [ERROR]
> 
> [ERROR] For more information about the errors and possible solutions, please read the following articles:
> 
> [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
> 
> Switching to 1.6 or 9.0 doesn’t work. I haven’t tried 1.7 or 1.8
> 
> John


all the best, Don
-- 
Don Brutzman  Naval Postgraduate School, Code USW/Br       brutzman at nps.edu
Watkins 270,  MOVES Institute, Monterey CA 93943-5000 USA   +1.831.656.2149
X3D graphics, virtual worlds, navy robotics http://faculty.nps.edu/brutzman

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20171120/b3f13d01/attachment-0001.html>


More information about the x3d-public mailing list