[x3d-public] Further enhancements to X3DJSAIL. Patch for JavaScript

John Carlson yottzumm at gmail.com
Tue Oct 24 04:50:27 PDT 2017


Patch attached.  Usage:  In the X3DJSONLD/src/main/nashorn folder, there is a growl.sh file.  Execute this file under bash.

$ cat growl.sh

# Create a growl.js from compiled Java code
java -Dnashorn.args=--language=es6 -cp "../../../target/X3DJSONLD-1.0-SNAPSHOT.jar;../../../../pythonSAI/X3DJSAIL.3.3.full.jar;../../../saxon9he.jar" net.x3djsonld.data.abox js growl.js

# run the Nashorn 9 JavaScript found in growl.js to create an X3D XML file, placed in the same folder
jjs --language=es6 -cp "../../../target/X3DJSONLD-1.0-SNAPSHOT.jar;../../../../pythonSAI/X3DJSAIL.3.3.full.jar;../../../saxon9he.jar" growl.js

X3DJSAIL contains references to repeatPolyfill.js and jvm-npm.js which 1. Provide for ES6 functions and Node modules—but not node native modules.  These must be commented out in source code, which I did in X3DJSONLD.js.

https://github.com/coderextreme/X3DJSONLD/tree/master/src/main/nashorn is where the source code is.

My version of X3DJSAIL is found here: https://github.com/coderextreme/JavaSceneAuthoringInterfaceLibrary


Don, is there an ant target for jjs or Java’s native compiler yet?  We may want to run additional tests with ant.

John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20171024/ecf07085/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: CreateX3DJSAI.patch
Type: application/octet-stream
Size: 5690 bytes
Desc: not available
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20171024/ecf07085/attachment.obj>


More information about the x3d-public mailing list