$ cd /mnt/c/x3d-code/www.web3d.org/x3d/stylesheets/java/ $ javac -cp lib/javax.json-api-1.0.jar src/net/coderextreme/X3DJSONLD.java $ cp src/net/coderextreme/X3DJSONLD.class classes/net/coderextreme/ $ jjs -J-Djava.class.path=jars/X3DJSAIL.3.3.full.jar:classes nashorn/examples/Json.js [X3DLoaderObject error] Incorrectly handled object construction, current elementObject=ViewpointGroup (ViewpointGroup), child=Viewpoint, java.lang.ClassCastException: org.web3d.x3d.jsail.Navigation.ViewpointGroupObject cannot be cast to org.web3d.x3d.sai.Grouping.X3DGroupingNode java.lang.ClassCastException: org.web3d.x3d.jsail.Navigation.ViewpointGroupObject cannot be cast to org.web3d.x3d.sai.Grouping.X3DGroupingNode at org.web3d.x3d.jsail.X3DLoaderObject.toX3dObjectTree(X3DLoaderObject.java:1146) at org.web3d.x3d.jsail.X3DLoaderObject.toX3dObjectTree(X3DLoaderObject.java:542) at org.web3d.x3d.jsail.X3DLoaderObject.toX3dObjectTree(X3DLoaderObject.java:542) at org.web3d.x3d.jsail.X3DLoaderObject.toX3dObjectTree(X3DLoaderObject.java:430) at org.web3d.x3d.jsail.X3DLoaderObject.toX3dObjectTree(X3DLoaderObject.java:399) at jdk.nashorn.internal.scripts.Script$Json.:program(nashorn/examples/Json.js:15) at jdk.nashorn.internal.runtime.ScriptFunctionData.invoke(ScriptFunctionData.java:637) at jdk.nashorn.internal.runtime.ScriptFunction.invoke(ScriptFunction.java:494) at jdk.nashorn.internal.runtime.ScriptRuntime.apply(ScriptRuntime.java:393) at jdk.nashorn.tools.Shell.apply(Shell.java:471) at jdk.nashorn.tools.Shell.runScripts(Shell.java:400) at jdk.nashorn.tools.Shell.run(Shell.java:179) at jdk.nashorn.tools.Shell.main(Shell.java:143) at jdk.nashorn.tools.Shell.main(Shell.java:119) [X3DLoaderObject error] Incorrectly handled object construction, current elementObject=ViewpointGroup (ViewpointGroup), child=Viewpoint, java.lang.ClassCastException: org.web3d.x3d.jsail.Navigation.ViewpointGroupObject cannot be cast to org.web3d.x3d.sai.Grouping.X3DGroupingNode java.lang.ClassCastException: org.web3d.x3d.jsail.Navigation.ViewpointGroupObject cannot be cast to org.web3d.x3d.sai.Grouping.X3DGroupingNode at org.web3d.x3d.jsail.X3DLoaderObject.toX3dObjectTree(X3DLoaderObject.java:1146) at org.web3d.x3d.jsail.X3DLoaderObject.toX3dObjectTree(X3DLoaderObject.java:542) at org.web3d.x3d.jsail.X3DLoaderObject.toX3dObjectTree(X3DLoaderObject.java:542) at org.web3d.x3d.jsail.X3DLoaderObject.toX3dObjectTree(X3DLoaderObject.java:430) at org.web3d.x3d.jsail.X3DLoaderObject.toX3dObjectTree(X3DLoaderObject.java:399) at jdk.nashorn.internal.scripts.Script$Json.:program(nashorn/examples/Json.js:15) at jdk.nashorn.internal.runtime.ScriptFunctionData.invoke(ScriptFunctionData.java:637) at jdk.nashorn.internal.runtime.ScriptFunction.invoke(ScriptFunction.java:494) at jdk.nashorn.internal.runtime.ScriptRuntime.apply(ScriptRuntime.java:393) at jdk.nashorn.tools.Shell.apply(Shell.java:471) at jdk.nashorn.tools.Shell.runScripts(Shell.java:400) at jdk.nashorn.tools.Shell.run(Shell.java:179) at jdk.nashorn.tools.Shell.main(Shell.java:143) at jdk.nashorn.tools.Shell.main(Shell.java:119) Warning: toFileX3D() is overwriting prior file ./nashorn/examples/Json.x3d Warning: toFileStylesheetConversion(X3dToJson.xslt) is overwriting prior file ./nashorn/examples/Json.json Script DEF=colorTypeConversionScript contains CDATA source-code text, copied as "#sourceText" using "strings" mode Script DEF=MaterialModulatorScript contains CDATA source-code text, copied as "#sourceText" using "strings" mode $ diff -w nashorn/examples/HelloWorldProgramOutput.Java.x3d nashorn/examples/Json.x3d 32a33,35 > > > 35,38c38 < < < < --- >