Login  Register

Re: Trying to learn how to use jogl. Need help!

Posted by shadoworld56 on Aug 30, 2014; 8:03pm
URL: https://forum.jogamp.org/Trying-to-learn-how-to-use-jogl-Need-help-tp4032957p4032991.html

I am still getting the complaint of it not being able to find the main method.

Jeremiahs-Mac-Pro:lib jeremiahdeckard$ java -classpath "jar/gluegen-rt.jar:jar/jogl-all.jar:joglDemo" joglDemo.OneTriangleSwingGLJPanel
Error: Could not find or load main class joglDemo.OneTriangleSwingGLJPanel
Jeremiahs-Mac-Pro:lib jeremiahdeckard$

I have tried being in the dir of lib (cd lib) and outside of it (cd) I have tried my package being joglDemo and lib.joglDemo

I have added to the end of the class path "lib" and "lib.joglDemo"

also the OneTriangleSwingGLJPanel.java file generates 3 .class files OneTriangleSwingGLJPanel.class OneTriangleSwingGLJPanel$1.class and OneTriangleSwingGLJPanel$2.class
here is the joglDemo dir. it contains both the .java and the .class flies . I have this in a dir called lib on my home dir (the one calling cd sends me to and terminal opens up to on default) inside of the lib dir i have the jar dir containing the jogl jars
joglDemo.zip