[x3d-public] X3DJSAIL running generated Java program to produce Java

John Carlson yottzumm at gmail.com
Tue Jul 17 18:51:50 PDT 2018


Trying to produce Java source code from Java class, not working ,please advise:

coderextreme at DESKTOP-DOPK2VD MINGW64 /c/x3d-code/www.web3d.org/x3d/stylesheets/java/classes
$ java -cp ../jars/X3DJSAIL.3.3.full.jar";." HelloWorldProgramOutput -tofile foo.java -toJava
parameter: "-tofile" "foo.java" for result file name root foo
parameter: "-toJava" for conversion to Java source code
[Error] Source model file name is empty, therefore file loading not possible.
Java program "HelloWorldProgramOutput" self-validation test results: success

coderextreme at DESKTOP-DOPK2VD MINGW64 /c/x3d-code/www.web3d.org/x3d/stylesheets/java/classes
$ java -cp ../jars/X3DJSAIL.3.3.full.jar";." HelloWorldProgramOutput ../examples/HelloWorldProgramOutput.x3d -tofile foo.java -toJava
WARNING: "HelloWorldProgramOutput" model invocation is attempting to load file "../examples/HelloWorldProgramOutput.x3d" instead of simply validating itself...


No, CommandLine is not the correct answer.

Are we trying to provide a secure mechanism for people to write code so you can’t get the X3D XML or Java source code back out?    What about decompilers?

John

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


More information about the x3d-public mailing list