[Source] problem with jgeom build, java3d dependency

Don Brutzman brutzman at nps.edu
Sun Nov 24 18:06:14 PST 2013


[cc: source at web3d.org mailing list which would seem to have some overlap with jgeom - does that seem OK?  it is the 'source' list, after all... and there are multiple overlaps of interest, especially since jgeom is used by Xj3D.  or perhaps there is a better place for jgeom discussion?]

Hi Vince.  There is a problem with the jgeom build that has been lingering for awhile.  Error log excerpt:

	https://savage.nps.edu/jenkins/job/jgeom/
	https://savage.nps.edu/jenkins/job/jgeom/109/console

Looks like ArbitraryNURBSGeometry.java failing, it is looking for java3d.  This file was checked in some time ago as an example use of jgeom.

> Started by timer
> Building in workspace /var/lib/jenkins/jobs/jgeom/workspace
> Updating http://svn.code.sf.net/p/jgeom/code/trunk at revision '2013-11-24T07:08:17.007 -0800'
> At revision 20
> no change for http://svn.code.sf.net/p/jgeom/code/trunk since the previous build
> [workspace] $ /usr/java/apache-ant-1.8.2/bin/ant all
> Buildfile: /var/lib/jenkins/jobs/jgeom/workspace/build.xml
> 
> init:
> 
> compile:
>     [javac] Compiling 59 source files to /var/lib/jenkins/jobs/jgeom/workspace/build
>     [javac] /var/lib/jenkins/jobs/jgeom/workspace/src/java/net/jgeom/j3d/examples/ArbitraryNURBSGeometry.java:26: error: package javax.media.j3d does not exist
>     [javac] import javax.media.j3d.Alpha;
>     [javac]                       ^
>     [javac] /var/lib/jenkins/jobs/jgeom/workspace/src/java/net/jgeom/j3d/examples/ArbitraryNURBSGeometry.java:27: error: package javax.media.j3d does not exist
>     [javac] import javax.media.j3d.AmbientLight;
>     [javac]                       ^
etc. etc.

Not 100% sure, but it looks like the latest java3d (built back in the days of Sun Microsystems) is at
http://www.oracle.com/technetwork/java/javase/tech/index-jsp-138252.html

Latest version found there is java3d 1.5.2 which README says requires JDK 1.5.0 or later

/cygdrive/c/Program Files (x86)/Java/Java3D/1.5.2/lib/ext
$ ls -al
-rwx------+ 1 SYSTEM SYSTEM 2957997 Jun 30  2008 j3dcore.jar
-rwx------+ 1 SYSTEM SYSTEM 1704635 Jun 30  2008 j3dutils.jar
-rwx------+ 1 SYSTEM SYSTEM  318956 Jun 30  2008 vecmath.jar

Inspecting this downloaded vecmath.jar shows
> 
> Extension-Name: javax.vecmath
> Implementation-Version: 1.5.2

We already have vecmath.jar version 1.5.1 in the jgeom/lib directory:
> Extension-Name: javax.vecmath
> Implementation-Version: 1.5.1

So upgrading that shouldn't be a problem... Wondering if we should place all three of these later java3d jars in the jgeom/lib directory?  Seems safe to do.

So I tested that.  Adding them on my local copy of jgeom (and updating the netbeans project lib references) greatly cleans up the errors in this class, leaving only:

> Compiling 59 source files to C:\java\jgeom\build
> C:\java\jgeom\src\java\net\jgeom\j3d\examples\ArbitraryNURBSGeometry.java:42: error: package net.jgeom.j3d.objects does not exist
> import net.jgeom.j3d.objects.NurbsSurfaceShape;
> C:\java\jgeom\src\java\net\jgeom\j3d\examples\ArbitraryNURBSGeometry.java:154: error: cannot find symbol
>         NurbsSurfaceShape nss = new NurbsSurfaceShape(ns);
>   symbol:   class NurbsSurfaceShape
>   location: class ArbitraryNURBSGeometry
> C:\java\jgeom\src\java\net\jgeom\j3d\examples\ArbitraryNURBSGeometry.java:154: error: cannot find symbol
>         NurbsSurfaceShape nss = new NurbsSurfaceShape(ns);
>   symbol:   class NurbsSurfaceShape
>   location: class ArbitraryNURBSGeometry

So it would seem that the jgeom class library evolved since this earlier example was written.

Anyway, let me know if you agree that we should check in this version of java3d to the jgeom libs, and we can then continue troubleshooting this example (and maybe get some others too).

All feedback welcome, thanks for looking at this.

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 Source mailing list