I encountered mainly cannot resolve symbol : variable GLU when I tried to compile the CVS under Java 1.4.2_08. Detail as follows compiling under win XP:
-
ant - from netbeans in C:\Program Files\netbeans-4.1\ide5\ant\bin
-
antlr-2.7.5.jar - downloaded and place in C:\download\antlr-2.7.5\
-
minGW - downloaded MinGW-4.1.1.exe and run it to install under C:\MinGW
-
Followed the instruction given for build so copy the jogl.properties to my home directory with the following modification :
java.home.dir=C:/j2skd1.4.2_08
antlr.jar=C:/download/antlr-2.7.5/antlr-2.7.5.jar
-
Building it with
set CLASSPATH=
“C:\Program Files\netbeans-4.1\ide\ant\bin\ant” win32.mingw
and get can’t find tools.jar so I copied C:\j2dkd1.4.2_08\lib\tools.jar to C:\Program Files\Java\j2re1.4.2_08\lib
Managed to compile and display
:
:
[javac] C:\mysourcepath\jogl\src\classes\com\sun\opengl\impl\GLUquadricImpl.java:1267: cannot resolve symbol
[javac] symbol : variable GLU
[javac] location: class com.sun.opengl.impl.GLUquadricImpl
[javac] case GLU.GLU_SMOOTH :
[javac] ^
:
:
[javac] 100 errors
BUILD FAILED
C:\mysourcepath\jogl\make\build.xml:1066: The following error occurred while executing this line:
C:\mysourcepath\jogl\make\build.xml:641: Compile failed; see the compiler error output for details.
Total time: 9 seconds
I can’t figure out why not able to resolve GLU; must have missed out something but what it is ???