<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><ul style="color:rgb(0,0,0);font-family:"Times New Roman";font-size:medium"><li><i>Complete, nashorn is no longer supported.</i> <a id="gmail-coderextreme"></a><a href="https://github.com/coderextreme/X3DJSAIL">coderextreme/X3DJSAIL</a> development is testing and building many capabilities. <a href="https://www.oracle.com/technetwork/articles/java/jf14-nashorn-2126515.html">Nashorn JavaScript</a> usage is demonstrated, and <a id="gmail-Maven"></a><a href="https://maven.apache.org/" target="_blank">Maven</a> build support is under consideration.</li></ul><div><font color="#000000" face="Times New Roman" size="3">On:</font></div><div><a href="https://www.web3d.org/specifications/java/X3DJSAIL.html">X3DJSAIL: X3D Java Scene Access Interface Library (web3d.org)</a><font color="#000000" face="Times New Roman" size="3"><br></font></div><div><br>Nashorn  development has moved to GraalJS, which AFAIK is up to date with current ECMAScript standards.</div><div><br></div><div><font color="#000000" face="Times New Roman" size="3">That should reference coderextreme/X3DJSONLD.  The coderextreme/X3DJSAIL repository is code rot, v3.3 of the jars.  Pull requests welcome.</font></div><div><font color="#000000" face="Times New Roman" size="3"><br></font></div><div><div><font color="#000000" face="Times New Roman" size="3">There is a Maven pom.xml and Gradle installation under coderextreme/X3DJSONLD.</font></div><div></div></div><div><font color="#000000" face="Times New Roman" size="3"><br></font></div><div><font color="#000000" face="Times New Roman" size="3">GraalJS is now preferred over Nashorn, and X3DJSONLD supports conversions X3dToES5.xslt (sorry, wrong name).  Bring your own stylesheet to X3DJSAIL.properties if desired.  X3dToNodeJS.xslt is possible, but hard to install.</font></div><div><br></div><div><font color="#000000" face="Times New Roman" size="3">Here are alternate stylesheets for your perusal.</font></div><div><font color="#000000" face="Times New Roman" size="3"><br></font></div><div><font color="#000000" face="Times New Roman" size="3"><a href="https://coderextreme.net/X3DJSONLD/src/main/lib/stylesheets/X3dToNodeJS.xslt">https://coderextreme.net/X3DJSONLD/src/main/lib/stylesheets/X3dToNodeJS.xslt</a><br></font></div><div><font color="#000000" face="Times New Roman" size="3"><br></font></div><div><font color="#000000" face="Times New Roman" size="3">(one needs to install the node-java/java module, version 0.14.0 </font><a href="https://www.npmjs.com/package/java/v/0.14.0">java - npm (npmjs.com)</a>.  Probably needs recompilation and a reference locally, like</div><div><br></div><div>"java": "file:../node-java",<br></div><div><br></div><div>under dependencies in package.json.   You will need to clone the GitHub repo. in a folder parallel to the folder your package.json is in.</div><div><br></div><div>You will also need to have this file:</div><div><br></div><div><a href="https://github.com/coderextreme/X3DJSONLD/blob/master/src/main/node/net/x3djsonld/data/X3Dautoclass.js">X3DJSONLD/src/main/node/net/x3djsonld/data/X3Dautoclass.js at master · coderextreme/X3DJSONLD (github.com)</a><br></div><div><br></div><div>or this file:</div><div><br></div><div><a href="https://github.com/coderextreme/X3DJSONLD/blob/master/src/main/node/X3Dautoclass.js">X3DJSONLD/src/main/node/X3Dautoclass.js at master · coderextreme/X3DJSONLD (github.com)</a><br></div><div><br></div><div>(I think they may be the same)</div><div><br></div><div><br></div><div>For this reason for all the configuration, I find GraalJS easier to use, and I'm pretty sure there's a commercially supported version (Oracle provides a release).  Use this stylesheet for the latest.</div><div><font color="#000000" face="Times New Roman" size="3"><br></font></div><div><font color="#000000" face="Times New Roman" size="3"><a href="https://coderextreme.net/X3DJSONLD/src/main/lib/stylesheets/X3dToES5.xslt">https://coderextreme.net/X3DJSONLD/src/main/lib/stylesheets/X3dToES5.xslt</a></font></div><div><font color="#000000" face="Times New Roman" size="3"><br></font></div><div><font color="#000000" face="Times New Roman" size="3">And this import file:</font></div><div><font color="#000000" face="Times New Roman" size="3"><br></font></div><div><a href="https://github.com/coderextreme/X3DJSONLD/blob/master/src/main/graaljs/net/coderextreme/data/X3Dautoclass.js">X3DJSONLD/src/main/graaljs/net/coderextreme/data/X3Dautoclass.js at master · coderextreme/X3DJSONLD (github.com)</a><font color="#000000" face="Times New Roman" size="3"><br></font></div><div><font color="#000000" face="Times New Roman" size="3"><br></font></div><div><font color="#000000" face="Times New Roman" size="3">(sorry, same name as above.  They are different files)</font></div><div><font color="#000000" face="Times New Roman" size="3"><br></font></div><div><font color="#000000" face="Times New Roman" size="3">Don't forget to point the X3Dautoclass.js file to your own X3DJSAIL jar file.</font></div><div><font color="#000000" face="Times New Roman" size="3"><br></font></div><div><font color="#000000" face="Times New Roman" size="3">John</font></div><div><font color="#000000" face="Times New Roman" size="3"><br></font></div></div></div></div></div></div></div></div></div></div></div></div>