[x3d-public] testing error X3JDJSAIL. ant-contrib, string constants

John Carlson yottzumm at gmail.com
Fri Jul 20 06:18:37 PDT 2018

I can no longer duplicate this error.  It must have been fixed.


Sent from Mail for Windows 10

From: Don Brutzman
Sent: Friday, July 20, 2018 6:24 AM
To: John Carlson
Cc: X3D Graphics public mailing list
Subject: Re: testing error X3JDJSAIL. ant-contrib, string constants

On 7/17/2018 2:18 AM, John Carlson wrote:
>  From stylesheets folder:
> $ ~/apache-ant-1.10.4/bin/ant test.X3DJSAIL
> Buildfile: C:\x3d-code\www.web3d.org\x3d\stylesheets\build.xml
>    [taskdef] Could not load definitions from resource net/sf/antcontrib/antcontrib.properties. It could not be found.

You need antcontrib jar added to your ant installation.  Details at

	Savage Developers Guide: Ant

> test.mkdir:
> test.X3dToJava.xslt:
>       [echo] org.web3d.x3d.jsail.CommandLine test/arc.x3d -toJava -toFile test/arc.java
>     [delete] Deleting: C:\x3d-code\www.web3d.org\x3d\stylesheets\test\arc.java
>       [java] parameter: source file arc.x3d filesize 7523 bytes, parsed using Document Object Model (DOM) X3DLoader
>       [java] parameter: "-toJava" for conversion to Java source code
>       [java] parameter: "-toFile" "test/arc.java" for result file name root test/arc
>       [java] convert to Java:
>       [java] file conversion successful: arc.java (13257 bytes)
>       [echo] compile arc.java source...
>      [javac] Compiling 3 source files to C:\x3d-code\www.web3d.org\x3d\stylesheets\test
>      [javac] C:\x3d-code\www.web3d.org\x3d\stylesheets\test\HelloWorld.java:6: error: ';' expected
>      [javac] X3DObject x3dObjectTree = new X3DObject().setProfile(Immersive).setVersion(3.3).setXsd:noNamespaceSchemaLocation(http://www.web3d.org/specifications/x3d-3.3.xsd));

Please use quoted string "Immersive" or else to ensure to typos, string constant X3DObject.PROFILE_IMMERSIVE

for example,  new X3DObject().setProfile(X3DObject.PROFILE_IMMERSIVE) etc.


For Javadoc there, didn't wrap "quote marks" around XML syntax because then it looks like an MFString array element.  Perhaps there is a better way to express that there.

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

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

More information about the x3d-public mailing list