[x3d-public] X3DJSONLD 5.0 alpha release. with node-X3DJSAIL
John Carlson
yottzumm at gmail.com
Sun Apr 19 03:10:10 PDT 2020
This release of X3DJSONLD supports node-X3DJSAIL, so you can run JavaScript
code to call X3DJSAIL. What I discovered was that
X3DJSONLD's HelloWorldProgramOutput.js is very different than X3D @
sourceforge. I tried to make the two the same but I'm pretty clueless what
needs to be done. X3DJSONLD's does not have the "pyjnius" error, and
sourceforge's does.
In other words, I should be able to support an X3DJSONLD JavaScript
version of X3DJSAIL, using the node-java bridge! Unless someone can find
what I am, doing wrong. The two JS file versions are radically different!
Here's the differences:
coderextreme at DESKTOP-DOPK2VD MINGW64 ~/X3DJSONLD/src/main/node (master)
$ node net/coderextreme/data/HelloWorldProgramOutput.js
Warning: ../data/HelloWorldProgramOutput.new.x3d does not meet
suggested X3D nam
ing conventions, continuing...
Warning: toFileX3D() is overwriting prior file
../data/HelloWorldProgramOutput.n
ew.x3d
coderextreme at DESKTOP-DOPK2VD MINGW64 ~/X3DJSONLD/src/main/node (master)
$ cd /c/x3d-code/www.web3d.org/x3d/stylesheets/node/
coderextreme at DESKTOP-DOPK2VD MINGW64 /c/x3d-code/
www.web3d.org/x3d/stylesheets/node
$ node examples/HelloWorldProgramOutput.js
C:\x3d-code\www.web3d.org
\x3d\stylesheets\node\examples\HelloWorldProgramOutput.
js:95
.setValue(new
autoclass.MetadataString().setName("extraChildTest
").setValue(java.newArray("java.lang.String", ["checks MetadataSetObject
addValu
e() method"]))))
^
TypeError: Cannot read property 'setValue' of null
at Object.<anonymous> (C:\x3d-code\www.web3d.org
\x3d\stylesheets\node\exampl
es\HelloWorldProgramOutput.js:95:17)
?[90m at Module._compile (internal/modules/cjs/loader.js:1139:30)?[39m
?[90m at Object.Module._extensions..js
(internal/modules/cjs/loader.js:1159:1
0)?[39m
?[90m at Module.load (internal/modules/cjs/loader.js:988:32)?[39m
?[90m at Function.Module._load
(internal/modules/cjs/loader.js:896:14)?[39m
?[90m at Function.executeUserEntryPoint [as runMain]
(internal/modules/run_ma
in.js:71:12)?[39m
?[90m at internal/main/run_main_module.js:17:47?[39m
coderextreme at DESKTOP-DOPK2VD MINGW64 /c/x3d-code/
www.web3d.org/x3d/stylesheets/node
$
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20200419/ed9bd7bd/attachment.html>
More information about the x3d-public
mailing list