Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (481)
Games in Android Showcase (110)
games submitted by our members
Games in WIP (548)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  BEST IDE FOR JOGL?  (Read 5578 times)
0 Members and 1 Guest are viewing this topic.
Offline jujumen

Senior Newbie




java is the juju within.....


« Posted 2003-08-06 15: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! Angry

From the land beyond beyond........
across all hope and fear........
i bid you JAVA do appear.
Offline aNt

Senior Member




AFK


« Reply #1 - Posted 2003-08-06 15:31:26 »

Jbuilder is what i am using Smiley
Offline Markus_Persson

JGO Wizard


Medals: 14
Projects: 19


Mojang Specifications


« Reply #2 - Posted 2003-08-06 15:34:47 »

Jogl doesn't care. And if the IDE cares, get a new one. Wink

Play Minecraft!
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline jujumen

Senior Newbie




java is the juju within.....


« Reply #3 - Posted 2003-08-06 15: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.
Offline Java Cool Dude

Senior Member




Java forever


« Reply #4 - Posted 2003-08-06 19:10:34 »

Textpad Cool; simple. efficient, fast, etc..
No wonder I've been using it for the past year :0
http://www.realityflux.com/abba/texpad.jpg
Offline Mojomonkey

Senior Member




ooh ooh eee eeee


« Reply #5 - Posted 2003-08-06 19:24:10 »

Why do I just feel like I watched an infomercial about Textpad? Smiley

Try out eclipse as well. I personally prefer it.

Don't send a man to do a monkey's work.
Offline Markus_Persson

JGO Wizard


Medals: 14
Projects: 19


Mojang Specifications


« Reply #6 - Posted 2003-08-06 19:25:15 »

That's what I use as well.

Play Minecraft!
Offline Java Cool Dude

Senior Member




Java forever


« Reply #7 - Posted 2003-08-06 19:35:48 »

Quote
Why do I just feel like I watched an infomercial about Textpad? Smiley.

Cough satisfied customer cough Grin
Offline jujumen

Senior Newbie




java is the juju within.....


« Reply #8 - Posted 2003-08-06 20: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.
Offline aNt

Senior Member




AFK


« Reply #9 - Posted 2003-08-06 20:45:46 »

- open JBuilder 9
- wait forever for it to load Wink
- 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 Smiley
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline aNt

Senior Member




AFK


« Reply #10 - Posted 2003-08-06 20:52:25 »

its simpler then it looks Smiley - bish bosh
Offline Java Cool Dude

Senior Member




Java forever


« Reply #11 - Posted 2003-08-06 21:04:44 »

Quote
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?
Offline jujumen

Senior Newbie




java is the juju within.....


« Reply #12 - Posted 2003-08-06 22: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.
Offline gregorypierce

Senior Member




I come upon thee like the blue screen of death....


« Reply #13 - Posted 2003-08-06 22: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.com

She 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!
Offline jujumen

Senior Newbie




java is the juju within.....


« Reply #14 - Posted 2003-08-06 22: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? Embarrassed

From the land beyond beyond........
across all hope and fear........
i bid you JAVA do appear.
Offline gregorypierce

Senior Member




I come upon thee like the blue screen of death....


« Reply #15 - Posted 2003-08-06 23:07:43 »

Dunno. I don't use JBuilder so I couldn't say. That's an IDE specific thingy.

http://www.gregorypierce.com

She 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!
Offline jujumen

Senior Newbie




java is the juju within.....


« Reply #16 - Posted 2003-08-06 23: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.
Offline William Denniss

JGO Coder


Projects: 2


Fire at will


« Reply #17 - Posted 2003-08-06 23: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.

Offline jujumen

Senior Newbie




java is the juju within.....


« Reply #18 - Posted 2003-08-06 23: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.
Offline William Denniss

JGO Coder


Projects: 2


Fire at will


« Reply #19 - Posted 2003-08-07 00:47:39 »

just a guess but you probably have to specify somewhere which class which has the main method in in.

Will.

Offline gregorypierce

Senior Member




I come upon thee like the blue screen of death....


« Reply #20 - Posted 2003-08-07 02: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.com

She 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!
Offline aNt

Senior Member




AFK


« Reply #21 - Posted 2003-08-07 06: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!
Offline jujumen

Senior Newbie




java is the juju within.....


« Reply #22 - Posted 2003-08-07 18: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.
Offline aNt

Senior Member




AFK


« Reply #23 - Posted 2003-08-07 19: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. Smiley
Offline jujumen

Senior Newbie




java is the juju within.....


« Reply #24 - Posted 2003-08-07 20: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.  Wink (i was losing it there for a while)

From the land beyond beyond........
across all hope and fear........
i bid you JAVA do appear.
Offline aNt

Senior Member




AFK


« Reply #25 - Posted 2003-08-08 06:07:41 »

thats ok dude.. happens to me all the time  Grin
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

atombrot (26 views)
2014-08-19 09:29:53

Tekkerue (24 views)
2014-08-16 06:45:27

Tekkerue (23 views)
2014-08-16 06:22:17

Tekkerue (14 views)
2014-08-16 06:20:21

Tekkerue (22 views)
2014-08-16 06:12:11

Rayexar (60 views)
2014-08-11 02:49:23

BurntPizza (38 views)
2014-08-09 21:09:32

BurntPizza (30 views)
2014-08-08 02:01:56

Norakomi (37 views)
2014-08-06 19:49:38

BurntPizza (67 views)
2014-08-03 02:57:17
List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!