Advertisement

Java Help.

Started by July 01, 2002 10:17 PM
1 comment, last by cachavez 22 years, 7 months ago
I always get this messages when I run my applet. java.lang.NoClassDefFoundError:gl4java/awt/GLAnimCanvas I compile my program in this way. javac -classpath /jdk1.3/class/gl4java.jar program.java And I have gl4java.jar file in /jdk1.3/class do I´am doing something wrong ? I apreciate your help. Carlos Chavez carloschg01@hotmail.com
You might need to set the classpath environment variable to point to the gl4java .jar file. Even though you compile it pointing to that file, the classes need to be loaded at runtime as well.

---
Make it work.
Make it fast.

"Commmmpuuuuterrrr.." --Scotty Star Trek IV:The Voyage Home
"None of us learn in a vacuum; we all stand on the shoulders of giants such as Wirth and Knuth and thousands of others. Lend your shoulders to building the future!" - Michael Abrash[JavaGaming.org][The Java Tutorial][Slick][LWJGL][LWJGL Tutorials for NeHe][LWJGL Wiki][jMonkey Engine]
Advertisement
If you dont''t want to bother with CLASSPATH put gl4java.jar
in j2sdk1.4.0/jre/lib/ext (the last gl4java recommend version 1.4). You do this in order to compile the source files. Then
copy gl4java.jar in j2re1.4.0/lib/ext to set up the runtime enviroment.

This topic is closed to new replies.

Advertisement