[x3d-public] X3DJSAIL: classpath jar issues. Case Sensitivity; jar not found???

Don Brutzman brutzman at nps.edu
Tue Sep 12 15:26:06 PDT 2017


Yes when invoked as a jar, it is looking for itself as something along the lines of "X3DJSAIL[whatever].jar" in current CLASSPATH.

Also fixed the string-handling bug you uncovered here, thank you.

Latest build with update fixes now uploaded.


On 9/11/2017 3:42 PM, John Carlson wrote:
> Case Sensitivity in classpath:
> 
> java -cp “../../../target/X3DJSONLD-1.0-SNAPSHOT.jar;../../../X3DJSaIL-3.3-SNAPSHOT.jar;../../../saxon9he.jar” net/coderextreme/data/arc
> 
> Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String index out of range: -1
> 
>          at java.lang.String.substring(Unknown Source)
> 
>          at org.web3d.x3d.jsail.Core.X3DObject.toFileStylesheetConversion(X3DObject.java:740)
> 
>          at org.web3d.x3d.jsail.Core.X3DObject.toFileStylesheetConversion(X3DObject.java:601)
> 
>          at org.web3d.x3d.jsail.Core.X3DObject.toFileJSON(X3DObject.java:1184)
> 
>          at net.coderextreme.data.arc.main(arc.java:80)
> 
> ============================================================================================
> 
> Bad error message?  Jar is not in release versions.   Are we not allowing renaming of jars???  Thanks!
> 
> java -cp ../../../target/X3DJSONLD-1.0-SNAPSHOT.jar";"../../../X3DJSAIL-3.3-SNAPSHOT.jar";"../../../saxon9he.jar net/coderextreme/data/arc
> 
> Exception in thread "main" org.web3d.x3d.sai.InvalidFieldValueException: ERROR_CONFIGURATION_X3DJSAIL X3DJSAIL jar archive "X3DJSAIL-3.3-SNAPSHOT.jar" not found!
> 
>          at org.web3d.x3d.jsail.Core.X3DObject.toFileStylesheetConversion(X3DObject.java:756)
> 
>          at org.web3d.x3d.jsail.Core.X3DObject.toFileStylesheetConversion(X3DObject.java:601)
> 
>          at org.web3d.x3d.jsail.Core.X3DObject.toFileJSON(X3DObject.java:1184)
> 
>          at net.coderextreme.data.arc.main(arc.java:80)
> 
> Fixed by changing classpath.
> 
> John

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



More information about the x3d-public mailing list