[x3d-public] Errors in my X3DJSAIL HelloWorldProgramOutput.java command line, generating XML, JSON and JS

John Carlson yottzumm at gmail.com
Thu Jan 11 01:33:08 PST 2018


Incomplete?

Build:

test.nashorn:
     [echo] Compile:
     [echo] Run:
     [java] parameter: "-toJS" for conversion to JSON encoding
     [java] parameter: "-toFile" "nashorn/examples/HelloWorldProgramOutputOutput.js" for result file name root nashorn/examples/HelloWorldProgramOutputOutput
     [java] [Error] Source model file name is empty, therefore file loading not possible.
     [java] parameter: "-toJSON" for conversion to JSON encoding
     [java] parameter: "-toFile" "nashorn/examples/HelloWorldProgramOutputOutput.json" for result file name root nashorn/examples/HelloWorldProgramOutputOutput
     [java] [Error] Source model file name is empty, therefore file loading not possible.
     [java] parameter: "-toX3D" for conversion to X3D encoding
     [java] parameter: "-toFile" "nashorn/examples/HelloWorldProgramOutputOutput.x3d" for result file name root nashorn/examples/HelloWorldProgramOutputOutput
     [java] [Error] Source model file name is empty, therefore file loading not possible.


Ant script:

                <java classname="HelloWorldProgramOutput" classpath="${java.classes.dir};${java.jars.dir}/${jsai.full.archive.jar.name}" fork="${fork}">
                        <arg value="-toJS"/>
                        <arg value="-toFile"/>
                        <arg value="nashorn/examples/HelloWorldProgramOutputOutput.js"/>
                </java>
                <java classname="HelloWorldProgramOutput" classpath="${java.classes.dir};${java.jars.dir}/${jsai.full.archive.jar.name}" fork="${fork}">
                    <arg value="-toJSON"/>
                    <arg value="-toFile"/>
                    <arg value="nashorn/examples/HelloWorldProgramOutputOutput.json"/>
                </java>
                <java classname="HelloWorldProgramOutput" classpath="${java.classes.dir};${java.jars.dir}/${jsai.full.archive.jar.name}" fork="${fork}">
                    <arg value="-toX3D"/>
                    <arg value="-toFile"/>
                    <arg value="nashorn/examples/HelloWorldProgramOutputOutput.x3d"/>
                </java>


How to do it?

Thanks,

John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20180111/d5368d7e/attachment.html>


More information about the x3d-public mailing list