jujumen
JGO n00b  Posts: 23
java is the juju within.....
|
 |
«
on:
2003-08-06 11:27:57 » |
|
CAN ANY ONE TELL ME WHAT IDE IS BEST SUITED FOR JOGL? Im trying to use jbuilder 9 and its killing my brain cells! 
|
From the land beyond beyond........ across all hope and fear........ i bid you JAVA do appear.
|
|
|
aNt
|
 |
«
Reply #1 on:
2003-08-06 11:31:26 » |
|
Jbuilder is what i am using 
|
|
|
|
|
Markus_Persson
JGO Kernel      Posts: 2092 Medals: 10
Mojang Specifications
|
 |
«
Reply #2 on:
2003-08-06 11:34:47 » |
|
Jogl doesn't care. And if the IDE cares, get a new one. 
|
|
|
|
Games published by our own members! Go get 'em!
|
|
jujumen
JGO n00b  Posts: 23
java is the juju within.....
|
 |
«
Reply #3 on:
2003-08-06 11:41:37 » |
|
aNT i tried running the triangle demo nothing happened can you plz give me a step by step tut on how you run your jogls. when you run the project do you run it as an applet application test opentool or how exactly.
|
From the land beyond beyond........ across all hope and fear........ i bid you JAVA do appear.
|
|
|
|
|
Mojomonkey
JGO Ninja    Posts: 540 Medals: 3
ooh ooh eee eeee
|
 |
«
Reply #5 on:
2003-08-06 15:24:10 » |
|
Why do I just feel like I watched an infomercial about Textpad?  Try out eclipse as well. I personally prefer it.
|
Don't send a man to do a monkey's work.
|
|
|
Markus_Persson
JGO Kernel      Posts: 2092 Medals: 10
Mojang Specifications
|
 |
«
Reply #6 on:
2003-08-06 15:25:15 » |
|
That's what I use as well.
|
|
|
|
Java Cool Dude
JGO Ninja    Posts: 680
Java forever
|
 |
«
Reply #7 on:
2003-08-06 15:35:48 » |
|
Why do I just feel like I watched an infomercial about Textpad?  . Cough satisfied customer cough 
|
|
|
|
|
jujumen
JGO n00b  Posts: 23
java is the juju within.....
|
 |
«
Reply #8 on:
2003-08-06 16:44:52 » |
|
text pad up and running but............ C:\Documents and Settings\Owner\jbproject\joglDemos\src\TestRenderer.java:11: package net.java.games.jogl does not exist import net.java.games.jogl.GLEventListener; ^ C:\Documents and Settings\Owner\jbproject\joglDemos\src\TestRenderer.java:12: package net.java.games.jogl does not exist import net.java.games.jogl.GL; ^ C:\Documents and Settings\Owner\jbproject\joglDemos\src\TestRenderer.java:13: package net.java.games.jogl does not exist import net.java.games.jogl.GLDrawable;
|
From the land beyond beyond........ across all hope and fear........ i bid you JAVA do appear.
|
|
|
aNt
|
 |
«
Reply #9 on:
2003-08-06 16:45:46 » |
|
- open JBuilder 9 - wait forever for it to load  - File->New Project - Name the Project 'anything u like' - NEXT > - JDK: i set this to 1.4.2 - download and install JDK SDK 1.4.2. Then in jbuilder next to the JDK Field Path click the little '...' and add the JDK... - Required Libraries TAB: - ADD - NEW - Name: JOGL - ADD - Locate the JOGL.jar - OK - OK - ADD - NEW - Name: JOGL-Xtras - ADD - Locate the JOGL-DEMOS-UTIL.jar - OK - OK - In your Required Libraries TAB you should now have: JOGL JOGL-xtras - JBuilder will save them paths within itself so u dont need to go adding them to JBuilder again. just to your projects. this is very hand if u ask me. - NEXT > - FINISH - [Ctrl] N ---- and your off.. all jogl stuff is now at your command. to test it all just simply: 'import' the jogl stuff should be in the auto compleat 
|
|
|
|
|
Games published by our own members! Go get 'em!
|
|
aNt
|
 |
«
Reply #10 on:
2003-08-06 16:52:25 » |
|
its simpler then it looks  - bish bosh
|
|
|
|
|
Java Cool Dude
JGO Ninja    Posts: 680
Java forever
|
 |
«
Reply #11 on:
2003-08-06 17:04:44 » |
|
text pad up and running but............ C:\Documents and Settings\Owner\jbproject\joglDemos\src\TestRenderer.java:11: package net.java.games.jogl does not exist import net.java.games.jogl.GLEventListener; ^ C:\Documents and Settings\Owner\jbproject\joglDemos\src\TestRenderer.java:12: package net.java.games.jogl does not exist import net.java.games.jogl.GL; ^ C:\Documents and Settings\Owner\jbproject\joglDemos\src\TestRenderer.java:13: package net.java.games.jogl does not exist import net.java.games.jogl.GLDrawable; Did you put the dlls and jar where I mentioned?
|
|
|
|
|
jujumen
JGO n00b  Posts: 23
java is the juju within.....
|
 |
«
Reply #12 on:
2003-08-06 18:02:59 » |
|
yep dlls in windows/system32 jar in jdk/jre/lib/ext
|
From the land beyond beyond........ across all hope and fear........ i bid you JAVA do appear.
|
|
|
gregorypierce
JGO Strike Force    Posts: 905
I come upon thee like the blue screen of death....
|
 |
«
Reply #13 on:
2003-08-06 18:47:45 » |
|
Putting the .jar file there will only allow you to actual run applications with the JRE. ClassLoaders and different JVMs will prevent that from being universal. Find whatever setting allows you to add the .jar file to the IDE Projects classpath then you will be able to build. If you don't know anything about classpaths - you need to stop and learn that part first as you'll only frustrate yourself when things don't work. Then pick a tool and stick with it. Learn where it looks for files and such so that you don't have to rediscover those settings each time you switch tools.
Personally I use IntelliJ for all my needs and consider Eclipse a good free alternative.
|
http://www.gregorypierce.comShe builds, she builds oh man When she links, she links I go crazy Cause she looks like good code but she's really a hack I think I'll run upstairs and grab a snack!
|
|
|
jujumen
JGO n00b  Posts: 23
java is the juju within.....
|
 |
«
Reply #14 on:
2003-08-06 18:53:56 » |
|
- open JBuilder 9 - wait forever for it to load - File->New Project - Name the Project 'anything u like' - NEXT > - JDK: i set this to 1.4.2 - download and install JDK SDK 1.4.2. Then in jbuilder next to the JDK Field Path click the little '...' and add the JDK... - Required Libraries TAB: - ADD - NEW - Name: JOGL - ADD - Locate the JOGL.jar - OK - OK - ADD - NEW - Name: JOGL-Xtras - ADD - Locate the JOGL-DEMOS-UTIL.jar - OK - OK - In your Required Libraries TAB you should now have: JOGL JOGL-xtras - JBuilder will save them paths within itself so u dont need to go adding them to JBuilder again. just to your projects. this is very hand if u ask me. - NEXT > - FINISH - [Ctrl] N ---- and your off.. all jogl stuff is now at your command. to test it all just simply: 'import' the jogl stuff should be in the auto compleat WHEN I TRY TO RUN THE PROJECT THE PROJECT PROPERTIES DIALOG BOX POPS UP WITH THE RUN TAB SELECTED THEN WHAT? 
|
From the land beyond beyond........ across all hope and fear........ i bid you JAVA do appear.
|
|
|
gregorypierce
JGO Strike Force    Posts: 905
I come upon thee like the blue screen of death....
|
 |
«
Reply #15 on:
2003-08-06 19:07:43 » |
|
Dunno. I don't use JBuilder so I couldn't say. That's an IDE specific thingy.
|
http://www.gregorypierce.comShe builds, she builds oh man When she links, she links I go crazy Cause she looks like good code but she's really a hack I think I'll run upstairs and grab a snack!
|
|
|
jujumen
JGO n00b  Posts: 23
java is the juju within.....
|
 |
«
Reply #16 on:
2003-08-06 19:23:20 » |
|
so if i get intelij or eclipse running you can help me?
|
From the land beyond beyond........ across all hope and fear........ i bid you JAVA do appear.
|
|
|
William Denniss
JGO Kernel      Posts: 1837 Medals: 5
Fire at will
|
 |
«
Reply #17 on:
2003-08-06 19:35:33 » |
|
I don't use Jbuilder now, but a long time ago I got gl4java running fine in it without too much hassle - just a matter of putting the right files in the right places and telling JBuilder about them.
Personally I find that a shell, and a good text editor (I use jEdit since it's java...) is all the IDE I need.
Will.
|
|
|
|
jujumen
JGO n00b  Posts: 23
java is the juju within.....
|
 |
«
Reply #18 on:
2003-08-06 19:53:35 » |
|
when you click run the properties dialog box opens up with the run tab selected. then what next
|
From the land beyond beyond........ across all hope and fear........ i bid you JAVA do appear.
|
|
|
William Denniss
JGO Kernel      Posts: 1837 Medals: 5
Fire at will
|
 |
«
Reply #19 on:
2003-08-06 20:47:39 » |
|
just a guess but you probably have to specify somewhere which class which has the main method in in.
Will.
|
|
|
|
gregorypierce
JGO Strike Force    Posts: 905
I come upon thee like the blue screen of death....
|
 |
«
Reply #20 on:
2003-08-06 22:27:23 » |
|
If you get IntelliJ or Eclipse I can help you. Couldn't help you with JBuilder though. I just don't know the IDE. If you provide a screen shot of what JBuilder is asking you for I'm sure we can figure out what its asking for. I'm sure its just trying to figure out what you're trying to run.
|
http://www.gregorypierce.comShe builds, she builds oh man When she links, she links I go crazy Cause she looks like good code but she's really a hack I think I'll run upstairs and grab a snack!
|
|
|
aNt
|
 |
«
Reply #21 on:
2003-08-07 02:13:27 » |
|
its seems u have never used JBuilder before now. Look in the help. it lists everything on how to get JBuilder running from a new user point of view.. you will run into more and more things you will feel u cant do.. read the 'JBuilder Fundamentals' its under the Help menu item.. this is all basic stuff.. but that aside: - [Ctrl] N - General TAB - Class - If u wish to use a package path, Package: ant.coolstuff - Class Name: Main (whatever) - Base Class: just leave as is for now. - - public,
- Genarate main methord, No need to tick the rest for this little demo. they all do what they say on the tin. if u dont no there is a [help] button.
- OK - Class opens in main window:
public class Main { public static void main(String[] args) { } }
- Just add some output data:
public class Main { public static void main(String[] args) { System.out.println("hello jbuilder"); } }
- Make Project - Run Project - Project Propertys window opens under the Run tab - NEW... - Name: MyApp Runtime Configuration - Build Target: Make - Run tab - Type: Application - Main Class: [...] - New window will open named: 'Select Main Class for Project' - Browse TAB - ant.coolstuff.Main - OK - OK - OK - Run Project ----- You should get a System.out.println in the bottom output console saying 'hello jbuilder'. From here the world is yours.. there are loads of cool xtra stuff jbuilder duss as well. u can have more then one runtime type all under your Run Project popup. this can be handy if u want your code to be an Application pointing to a main(String[] args) or and Applet, WebStart, whatever.
hope this gets u on track to making cool stuff... jbuilders debuger is the best i have ever seen, anywhere!
|
|
|
|
|
jujumen
JGO n00b  Posts: 23
java is the juju within.....
|
 |
«
Reply #22 on:
2003-08-07 14:21:50 » |
|
thanks alot aNt but i understand all that. i have run several of my java programs as well as tutorials but im trying to run the jogl triangle program and i am not sure how to configure the run tab:
package jogls;
/** * <p>Title: simple triangle</p> * <p>Description: java opengl triangle tutorial</p> * <p>Copyright: Copyright (c) 2003</p> * <p>Company: jujuencryption</p> * @author not attributable * @version 1.0 */
import net.java.games.jogl.GLEventListener; import net.java.games.jogl.GL; import net.java.games.jogl.GLDrawable; import net.java.games.jogl.DebugGL;
public class TestRenderer implements GLEventListener { private GL gl; private GLDrawable glDrawable;
public void init(GLDrawable drawable) { this.gl = drawable.getGL(); this.glDrawable = drawable;
drawable.setGL( new DebugGL(drawable.getGL() ));
System.out.println("Init GL is " + gl.getClass().getName()); }
public void display(GLDrawable drawable) { gl.glClear(GL.GL_COLOR_BUFFER_BIT | GL.GL_DEPTH_BUFFER_BIT ); gl.glLoadIdentity();
gl.glColor3f(1.0f, 0.0f, 0.0f );
gl.glBegin( GL.GL_TRIANGLES ); gl.glVertex3f( 0.0f, 0.0f, 0.0f ); gl.glVertex3f( 1.0f, 0.0f, 0.0f ); gl.glVertex3f( 1.0f, 1.0f, 0.0f ); gl.glEnd(); }
public void reshape(GLDrawable drawable, int x, int y, int width, int height) { }
public void displayChanged(GLDrawable drawable, boolean modeChanged, boolean deviceChanged) { }
}
any idea?
|
From the land beyond beyond........ across all hope and fear........ i bid you JAVA do appear.
|
|
|
aNt
|
 |
«
Reply #23 on:
2003-08-07 15:56:52 » |
|
well u need a 'public static void main(String[] args)' see if there is another java file that may go with it or add this: package .... imports ... public class Main { public static void main(String[] args) { Frame frame = new Frame("Gear Demo"); GLCanvas canvas = GLDrawableFactory.getFactory().createGLCanvas(new GLCapabilities()); // Use debug pipeline // canvas.setGL(new DebugGL(canvas.getGL())); System.err.println("CANVAS GL IS: " + canvas.getGL().getClass().getName()); System.err.println("CANVAS GLU IS: " + canvas.getGLU().getClass().getName()); canvas.addGLEventListener(new TestRenderer ()); frame.add(canvas); frame.setSize(300, 300); final Animator animator = new Animator(canvas); frame.addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent e) { animator.stop(); System.exit(0); } }); frame.show(); animator.start(); } } then point JBuilder to this class. 
|
|
|
|
|
jujumen
JGO n00b  Posts: 23
java is the juju within.....
|
 |
«
Reply #24 on:
2003-08-07 16:36:41 » |
|
have you ever found your self doing something as dumb as trying to run an application without a "main" thanks aNT man, it runs just fine now.  (i was losing it there for a while)
|
From the land beyond beyond........ across all hope and fear........ i bid you JAVA do appear.
|
|
|
aNt
|
 |
«
Reply #25 on:
2003-08-08 02:07:41 » |
|
thats ok dude.. happens to me all the time 
|
|
|
|
|
|