Checkers3D to compile and run, you'll need to include relevant bits from Java 3D. On Windows, the OpenGL version of Java 3D consists of four JAR files and three DLLs. The JAR files are j3dcore.jar, j3daudio.jar, vecmath.jar, and j3dutils.jar in <JRE_DIR>\lib\ext\. The DLLs are J3D.dll, j3daudio.dll, and J3DUtils.dll in <JRE_DIR>\bin\. <JRE_DIR> is the directory holding the JRE, typically something like C:\Program Files\Java\j2re1.4.2_02\. If the Java 3D development kit is installed, the files will be found below the J2SE home directory, which is usually something like C:\j2sdk1.4.2_02 or C:\Program Files\Java\jdk1.5.0.
The OS level libraries will vary if the DirectX version of Java 3D is used or if the platform is Linux or the MacOS. The easiest way of finding out Java 3D's composition on your machine is to look through the Java 3D readme file, which is added to the J2SE home directory at installation time.
BugRunner application uses only the
J3DTimer, so which of the JAR and DLL files are required? The
J3DTimer class is part of the
com.sun.j3d.utils.timer package, which is stored in j3dutils.jar (confirm this by looking inside the JAR with a tool such as WinZip), as shown in Figure A-1.
J3DTimer class (and its inner class) account for about 1 KB out of the 1.2-MB JAR.
A look at the decompiled
J3DTimer class, using software such as the DJ Java decompiler (http://members.fortunecity.com/neshkov/dj.html ...