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.

Recommended Answers

All 4 Replies

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

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.

Hey, i figured it out, thanks for the help.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.