I am having DLL problems with Java 3D on Win32. Compilation (javac) works fine, but I get a runtime error trying to run the simplest programs. I have included part of the stackdump below.

Bill Day

You should not have to move any DLLs from their default installation directories: The Java 3D and OpenGL installation programs should put them in the correct place.

Assuming the DLLs are in the correct directories, you should not have to tell 'java' about J3D.dll or the OpenGL DLL.

Please begin by verifying your version of Java. Open a shell window (DOS shell is fine), and type 'java -version'. You should see something like this (note 1.2 part):
java version "1.2"
Classic VM (build JDK-1.2-V, native threads)

(Note that this is the 'Java 2' platform, in Sun marketing language). Sun's Java 3D implementations require Java 2/JDK 1.2 to execute correctly.

Assuming your version is ok, please be sure that your DLLs are in the directories they were installed into by their respective installation programs. On my Win95 system, with Java 2/JDK 1.2 installed under C:jdk1.2, the locations are:

Again, the 'java' executable will find the Java 3D JAR files and J3D.dll because they are located in the default directories which it searches automatically. The Java 3D DLL, in turn, will use Win32-specific resources to find the OpenGL DLL, which is in the Win32 default location.

0 Comments  (click to add your comment)
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



About | Sitemap | Contact