[x3d-public] X3DJSAIL updates: Patches to X3DJSAIL and build.xml, plus test.bat and nashorn additions
Don Brutzman
brutzman at nps.edu
Sun Dec 17 21:52:04 PST 2017
added your diff patch manually to test.nashorn, seems to work, checked in
<java classname="HelloWorldProgramOutput" classpath="${java.classes.dir};${java.jars.dir}/${jsai.full.archive.jar.name}" fork="${fork}">
<arg value="json"/>
<arg value="nashorn/examples/HelloWorldProgramOutput.json"/>
</java>
<java classname="HelloWorldProgramOutput" classpath="${java.classes.dir};${java.jars.dir}/${jsai.full.archive.jar.name}" fork="${fork}">
<arg value="x3d"/>
<arg value="nashorn/examples/HelloWorldProgramOutput.x3d"/>
</java>
On 12/17/2017 2:45 PM, John Carlson wrote:
> The patch for CreateX3dSceneAccessInterfaceJava.xslt didn't get applied by Netbeans... so I did it manually. Checked in.
>
> *Please confirm* manual patch to CreateX3dSceneAccessInterfaceJava.xslt was applied OK.
>
> I’ve removed my version of CreateX3dSceneAccessInterfaceJava.xslt, so we’re going with yours. Woohoo!
>
> After patches, this works:
>
> $ jjs nashorn/examples/HelloWorldProgramOutput.js.intermediate.js
>
> But my JavaScriptSerializer.js is still out of whack after that runs properly:
>
> $ jjs -cp java/jars/X3DJSAIL.3.3.full.jar nashorn/examples/HelloWorldProgramOutput.js
>
> nashorn/examples/HelloWorldProgramOutput.js:130 TypeError: (new AppearanceObject().setDEF("TestAppearance1").addComments(new CommentsBlock("ArtDeco01Material prototype goes here..."))).addProtoInstance is not a function
>
> I believe this is due to continue JSON translation problems found in the JSON in nashorn/examples/HelloWorldProgramOutput.js.intermediate.js and in nashorn/examples/HelloWorldProgramOutput.json
>
> [ -children instead of -material ]
>
>
> Help with these would be most welcome. You should be able to see the latter now applying the new patch attached to build.xml
>
> Good luck!
>
> 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
More information about the x3d-public
mailing list