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

Brutzman, Donald (Don) (CIV) brutzman at nps.edu
Thu Jan 11 10:45:21 PST 2018


Yes. You also need to tell it original source file that you were loading first.  That way it knows what to load, which is necessary before it can save out as a different version.

A list of all switches can be found on X3DJSAIL page under CommandLine.

Sent from my handheld device

On Jan 11, 2018, at 01:33, John Carlson <yottzumm at gmail.com<mailto:yottzumm at gmail.com>> wrote:

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/869595e8/attachment-0001.html>


More information about the x3d-public mailing list