[x3d-public] Exificient not working during build ofX3DJSAIL.missingjar,myversion; can provide build.xml if necessary.

John Carlson yottzumm at gmail.com
Sun Nov 19 21:50:15 PST 2017


Perhaps you should give me the build targets and target order you use to build the barebones X3DJSAIL.  Then we can run identical tests.

Thanks,

John

Sent from Mail for Windows 10

From: John Carlson
Sent: Monday, November 20, 2017 12:42 AM
To: Don Brutzman; x3d-public at web3d.org
Subject: RE: Exificient not working during build ofX3DJSAIL.missingjar,myversion; can provide build.xml if necessary.

Please either fix the exificient build to work with Java 9, or stop deleting the jars going into java/lib.  Thanks!

Also let me know if NetBeans 8.2 is required to build X3DJSAIL.  That may be the sticking point I guess. I run from the command line.

John

Sent from Mail for Windows 10

From: John Carlson
Sent: Monday, November 20, 2017 12:38 AM
To: Don Brutzman; x3d-public at web3d.org
Subject: RE: Exificient not working during build of X3DJSAIL.missingjar,myversion; can provide build.xml if necessary.


Another section of compilation errors after doing an update:

   [javac] Compiling 304 source files to C:\x3d-code\www.web3d.org\x3d\stylesheets\java\classes
    [javac] C:\x3d-code\www.web3d.org\x3d\stylesheets\java\src\org\web3d\x3d\jsail\Core\X3DObject.java:41: error: package com.siemens.ct.exi does not exist
    [javac] import com.siemens.ct.exi.CodingMode;
    [javac]                          ^
    [javac] C:\x3d-code\www.web3d.org\x3d\stylesheets\java\src\org\web3d\x3d\jsail\Core\X3DObject.java:42: error: package com.siemens.ct.exi does not exist
    [javac] import com.siemens.ct.exi.EXIFactory;
    [javac]                          ^
    [javac] C:\x3d-code\www.web3d.org\x3d\stylesheets\java\src\org\web3d\x3d\jsail\Core\X3DObject.java:43: error: package com.siemens.ct.exi does not exist
    [javac] import com.siemens.ct.exi.GrammarFactory;
    [javac]                          ^
    [javac] C:\x3d-code\www.web3d.org\x3d\stylesheets\java\src\org\web3d\x3d\jsail\Core\X3DObject.java:44: error: package com.siemens.ct.exi.api.sax does not exist
    [javac] import com.siemens.ct.exi.api.sax.EXIResult;
    [javac]                                  ^
    [javac] C:\x3d-code\www.web3d.org\x3d\stylesheets\java\src\org\web3d\x3d\jsail\Core\X3DObject.java:45: error: package com.siemens.ct.exi.api.sax does not exist
    [javac] import com.siemens.ct.exi.api.sax.EXISource;
    [javac]                                  ^
    [javac] C:\x3d-code\www.web3d.org\x3d\stylesheets\java\src\org\web3d\x3d\jsail\Core\X3DObject.java:46: error: package com.siemens.ct.exi.exceptions does not exist
    [javac] import com.siemens.ct.exi.exceptions.EXIException;
    [javac]                                     ^
    [javac] C:\x3d-code\www.web3d.org\x3d\stylesheets\java\src\org\web3d\x3d\jsail\Core\X3DObject.java:47: error: package com.siemens.ct.exi.grammars does not exist
    [javac] import com.siemens.ct.exi.grammars.Grammars;
    [javac]                                   ^
    [javac] C:\x3d-code\www.web3d.org\x3d\stylesheets\java\src\org\web3d\x3d\jsail\Core\X3DObject.java:48: error: package com.siemens.ct.exi.helpers does not exist
    [javac] import com.siemens.ct.exi.helpers.DefaultEXIFactory;

John

Sent from Mail for Windows 10

From: John Carlson
Sent: Monday, November 20, 2017 12:30 AM
To: Don Brutzman; x3d-public at web3d.org
Subject: RE: Exificient not working during build of X3DJSAIL. missingjar,myversion; can provide build.xml if necessary.

Still dealing with missing jars.  I can’t build, because it deletes the jars

$ ls java/lib
saxon9he.jar  specifications/  stylesheets/

$ svn up .
Updating '.':
Restored 'java\lib\nagasena.jar'
Restored 'java\lib\exificient-gui-jar-with-dependencies.jar'
At revision 26013.

$ ./test.bat
(creating java code works, but compilation fails.  Here are some of the errors)

   [javac]                            ^
    [javac]   symbol:   class EXIException
    [javac]   location: class X3DObject
    [javac] C:\x3d-code\www.web3d.org\x3d\stylesheets\java\src\org\web3d\x3d\jsail\Core\X3DObject.java:1814: error: cannot find symbol
    [javac]                             EXIFactory exiFactory = DefaultEXIFactory.newInstance();
    [javac]                             ^
    [javac]   symbol:   class EXIFactory
    [javac]   location: class X3DObject
    [javac] C:\x3d-code\www.web3d.org\x3d\stylesheets\java\src\org\web3d\x3d\jsail\Core\X3DObject.java:1814: error: cannot find symbol
    [javac]                             EXIFactory exiFactory = DefaultEXIFactory.newInstance();
    [javac]                                                     ^
    [javac]   symbol:   variable DefaultEXIFactory
    [javac]   location: class X3DObject
    [javac] C:\x3d-code\www.web3d.org\x3d\stylesheets\java\src\org\web3d\x3d\jsail\Core\X3DObject.java:1820: error: cannot find symbol
    [javac]                                     exificientGrammarX3D = GrammarFactory.newInstance().createGrammars("http://www.web3d.org/specifications/x3d-3.3.xsd"); // use XML schema
    [javac]                                                            ^
    [javac]   symbol:   variable GrammarFactory
    [javac]   location: class X3DObject
    [javac] C:\x3d-code\www.web3d.org\x3d\stylesheets\java\src\org\web3d\x3d\jsail\Core\X3DObject.java:1822: error: cannot find symbol
    [javac]                             exiFactory.setCodingMode(CodingMode.COMPRESSION); // use deflate compression for larger XML files
    [javac]                                                      ^
    [javac]   symbol:   variable CodingMode
    [javac]   location: class X3DObject
    [javac] C:\x3d-code\www.web3d.org\x3d\stylesheets\java\src\org\web3d\x3d\jsail\Core\X3DObject.java:1828: error: cannot find symbol
    [javac]                             EXIResult exiResult = new EXIResult(exiFactory);
    [javac]                             ^
    [javac]   symbol:   class EXIResult
    [javac]   location: class X3DObject
    [javac] C:\x3d-code\www.web3d.org\x3d\stylesheets\java\src\org\web3d\x3d\jsail\Core\X3DObject.java:1828: error: cannot find symbol
    [javac]                             EXIResult exiResult = new EXIResult(exiFactory);
    [javac]                                                       ^
    [javac]   symbol:   class EXIResult
    [javac]   location: class X3DObject
    [javac] C:\x3d-code\www.web3d.org\x3d\stylesheets\java\src\org\web3d\x3d\jsail\Core\X3DObject.java:1830: warning: [deprecation] XMLReaderFactory in org.xml.sax.helpers has been deprecated
    [javac]                             XMLReader xmlReader = XMLReaderFactory.createXMLReader();
    [javac]                                                   ^
    [javac] C:\x3d-code\www.web3d.org\x3d\stylesheets\java\src\org\web3d\x3d\jsail\Core\X3DObject.java:1837: error: cannot find symbol
    [javac]                     catch (SAXException | IOException | EXIException ex)
    [javac]                                                         ^
    [javac]   symbol:   class EXIException
    [javac]   location: class X3DObject

…
BUILD FAILED
C:\x3d-code\www.web3d.org\x3d\stylesheets\build.xml:270: Compile failed; see the compiler error output for details.

Sent from Mail for Windows 10

From: Don Brutzman
Sent: Monday, November 20, 2017 12:20 AM
To: John Carlson; x3d-public at web3d.org
Subject: Re: Exificient not working during build of X3DJSAIL. missing jar,myversion; can provide build.xml if necessary.

sure have read the book about maven.  but that is a bunch of work for fancier building that takes away from continued development of X3D capabilities, no doubt incurring numerous issues while transitioning.

and so saving that for a rainy day/week.  if it becomes necessary/crucial you are welcome to try... i don't think that ant and maven are mutually exclusive by any means.

... meanwhile: did my posted fix work for you?


On 11/19/2017 9:06 PM, John Carlson wrote:
> A better way to handle this is to put jar dependencies on a maven repository and provide a pom.xml which directs which version to download.   We don’t even know the versions of these new jar files, it seems.
> 
> Did you know you can do many ant tasks and write ant scripts in Maven?   Look into it!
> 
> John
> 
> Sent from Mail <https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10
> 
> *From: *Don Brutzman <mailto:brutzman at nps.edu>
> *Sent: *Sunday, November 19, 2017 11:35 PM
> *To: *John Carlson <mailto:yottzumm at gmail.com>; x3d-public at web3d.org <mailto:x3d-public at web3d.org>
> *Subject: *Re: Exificient not working during build of X3DJSAIL. missing jar, myversion; can provide build.xml if necessary.
> 
> thanks for trouble report John.
> 
> did you update subversion?  on my system
> 
>                  C:\x3d-code\www.web3d.org\x3d\stylesheets\java\lib
> 
> online at
> 
>                  https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/stylesheets/java/lib/
> 
> The stylesheets/build.xml file is probably overzealous copying the latest local refresh (on my system), have relaxed failonerror so that does not block.
> 
>                  <echo message="copy latest stylesheets:"/>
> 
>           <mkdir dir="${java.lib.dir}"/>
> 
>           <mkdir dir="${java.lib.dir}/stylesheets"/>
> 
>           <copy file="${saxon.jar}"                     todir="${java.lib.dir}"             verbose="true" failonerror="false"/>
> 
>           <copy file="${exificient.jar}"                todir="${java.lib.dir}"             verbose="true" failonerror="false"/>
> 
>           <copy file="${openexi.jar}"                   todir="${java.lib.dir}"             verbose="true" failonerror="false"/>
> 
>           <copy file="X3dExtrusionToSvgViaXslt1.1.xslt" todir="${java.lib.dir}/stylesheets" verbose="true" failonerror="false"/>
> 
>           <copy file="X3dToJava.xslt"                   todir="${java.lib.dir}/stylesheets" verbose="true" failonerror="false"/>
> 
>           <copy file="X3dToJson.xslt"                   todir="${java.lib.dir}/stylesheets" verbose="true" failonerror="false"/>
> 
>           <copy file="X3dToX3dom.xslt"                  todir="${java.lib.dir}/stylesheets" verbose="true" failonerror="false"/>
> 
>           <copy file="X3dToXhtml.xslt"                  todir="${java.lib.dir}/stylesheets" verbose="true" failonerror="false"/>
> 
> Please refresh svn and retry, hope that helps.
> 
> On 11/19/2017 7:54 PM, John Carlson wrote:
> 
>  > $ ~/apache-ant-1.9.7/apache-ant-1.9.7/bin/ant create.X3DJSAIL test-nashorn
> 
>  >
> 
>  > Buildfile: C:\x3d-code\www.web3d.org\x3d\stylesheets\build.xml
> 
>  >
> 
>  > create.X3DJSAIL:
> 
>  >
> 
>  >       [echo] Build API for X3D Java Scene Authoring Interface Library (X3DJSAIL) from X3D Object Model
> 
>  >
> 
>  >       [echo] clean prior autogenerated products, if any...
> 
>  >
> 
>  >       [echo] copy latest stylesheets:
> 
>  >
> 
>  >       [copy] Copying 1 file to C:\x3d-code\www.web3d.org\x3d\stylesheets\java\lib
> 
>  >
> 
>  >       [copy] Copying C:\x3d-code\www.web3d.org\x3d\stylesheets\saxon9he.jar to C:\x3d-code\www.web3d.org\x3d\stylesheets\java\lib\saxon9he.jar
> 
>  >
> 
>  > BUILD FAILED
> 
>  >
> 
>  > C:\x3d-code\www.web3d.org\x3d\stylesheets\build.xml:226: Warning: Could not find file C:\java\exificient\exificient-gui\target\exificient-gui-jar-with-dependencies.jar to copy.
> 
>  >
> 
>  > Total time: 0 seconds
> 
> 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
> 


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/20171120/6905ea11/attachment-0001.html>


More information about the x3d-public mailing list