after numerous tutorials, I am still unable to install JOGL. I add all of the files into a folder in the class-path then add them to the build-path, but I always get compiler errors. I have tried both Eclipse and NetBeans, both Windows 7 (64 bit) and Windows 10. I am fairly new to the world of Java, so please excuse me if this is a fairly simple mistake.
You need to import the GLCapabilities
class from the correct package. The javax.media.opengl
package for earlier versions (< 2.3.1), or the com.jogamp.opengl
for more recent versions. For instance:
import javax.media.opengl.GLCapabilities;
//import com.jogamp.opengl.GLCapabilities;
...or the entire package:
import javax.media.opengl.*;//earlier versions
//import com.jogamp.opengl.*;//
See Bug 682 for information on why/when the package was renamed.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.