i create an example with the help tool, and this dos thing works after export !
public class hello {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
System.out.println("Hello world!");
}
next test is an example of wikipedia for jogl
import javax.swing.;
import javax.media.opengl.;
import com.sun.opengl.util.GLUT;
public class JoglTest extends JFrame
{
GLCanvas canvas;
public JoglTest()
{
GLCapabilities cap = new GLCapabilities();
canvas = new GLCanvas(cap);
canvas.addGLEventListener(new SceneView());
getContentPane().add(canvas);
setTitle("Simples Jogl-Beispiel");
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
setSize(400, 400);
setVisible(true);
}
class SceneView implements GLEventListener
{
public void init(GLAutoDrawable arg0)
{
GL gl = arg0.getGL();
float l_position[] = {100.0f, 100.0f, 200.0f, 1.0f};
gl.glEnable(GL.GL_LIGHTING);
gl.glEnable(GL.GL_LIGHT0);
gl.glEnable(GL.GL_COLOR_MATERIAL);
gl.glEnable(GL.GL_DEPTH_TEST);
gl.glEnable(GL.GL_NORMALIZE);
gl.glEnable(GL.GL_POLYGON_SMOOTH);
gl.glLightfv(GL.GL_LIGHT0, GL.GL_POSITION, l_position, 0);
gl.glClearColor(0.7f, 0.7f, 0.7f, 0.0f);
gl.glMatrixMode(GL.GL_PROJECTION);
gl.glOrtho(-100, 100, -100, 100, -100, 100);
gl.glMatrixMode(GL.GL_MODELVIEW);
gl.glRotatef(35.0f, 1.0f, 0.0f, 0.0f); // Rotation um die x-Achse
gl.glRotatef(-25.0f, 0.0f, 1.0f, 0.0f); // Rotation um die y-Achse
}
public void display(GLAutoDrawable arg0)
{
GL gl = arg0.getGL();
GLUT glut = new GLUT();
gl.glClear(GL.GL_COLOR_BUFFER_BIT | GL.GL_DEPTH_BUFFER_BIT);
gl.glColor3f(0.2f, 1.0f, 0.3f);
glut.glutSolidTeapot( 50.0 ) ;
}
public void reshape(GLAutoDrawable arg0, int arg1, int arg2, int arg3, int arg4)
{
}
public void displayChanged(GLAutoDrawable arg0, boolean arg1, boolean arg2)
{
}
}
public static void main(String args[])
{
new JoglTest();
}
}
that does the same problem like my own program
could not find the main class
there must be any bug in the exporter