Recently, i found a book online that walks you through various elements of java game creation. The code from the book uses the java3D timer, so to compile the example programs, I had to download and install java3D. At Oracle's site, I selected WindowsXP as my OS and downloaded the java3D installer. After I ran the install (and rebooted), I tried to compile the code and got this error:

package com.sun.j3d.utils.timer does not exist
cannot find symbol variable J3DTimer
cannot find symbol variable J3DTimer
cannot find symbol variable J3DTimer
cannot find symbol variable J3DTimer

The example code can be downloaded from here.

I was wondering if Jave3D installed in the wrong location, or if the code was antiquated.
My java3D file path is: C:\Program Files\Java\Java3D\1.5.1
and my jdk file path is: C:\Program Files\Java\jdk1.6.0_20

If anyone can help me figure out what's wrong, I'd appreciate it.

Have you added the Java3D jar file(s) to your project class path?

Edited 5 Years Ago by Ezzaral: n/a

No, I haven't. How exactly do I do that? I'm using JCreator, if that makes a difference.

Read the docs for JCreator I suppose. I've never used it myself. Look for info on adding third-party libraries.

Edited 5 Years Ago by Ezzaral: n/a

This question has already been answered. Start a new discussion instead.