Hi !
Featured games (85)
games approved by the League of Dukes
Games in Showcase (636)
Games in Android Showcase (178)
games submitted by our members
Games in WIP (687)
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  
  Installing JOGL  (Read 1745 times)
0 Members and 1 Guest are viewing this topic.
Offline Anthony

Junior Newbie

« Posted 2007-06-14 21:08:01 »

So I have been programming java for 3-4 years and me and my friend are trying to get an online game going.
We have the networking part set up, and we wanted to try using OpenGL instead of swing.

I have tried to follow every tutorial I can find off of google, and for some reason it doenst work.
I have the library files set up correctly, and it can load the DLL files.

JOGL,jar is in the project, and the import import*; always says it cannot find the net package.
The JOGL.jar file has a bunch of com.sun.openGL and packages in it, but no net package.

Some of the same classes that the tutorials use are in the com.sun stuff, but it makes me think I am using the wrong version of JOGL?
Also if it it of any use, I am using the eclipse IDE.

Any help is appreciated.
Offline taifunbrowser

Senior Newbie

« Reply #1 - Posted 2007-06-14 21:10:47 »

ya, ya, ya, jogl is always a bitch to set up, but when you do end up getting it working, its amazing.

What you may have to do:

1.) make sure its in build path of project (You implied this, so were good)
2.) Go to the "Run..." option in eclipse (top of window) and add to the Arguments tab the VM argument -Djava.library.path=---LOCATION OF LIBRARY DIRECTORY---

If it still doesnt work, right click My Computer, go to Advanced, go to Environmental Variables, go to Path, go to Edit, APPEND on to the end of the line --LOCATION OF LIBRARY DIRECTORY-- and a SEMICOLON

soo... ya

jogl is a bitch to install Tongue - the JTouhou project! Mixed 3d and 2d, a multiplatform port for the classic dojin-soft series by Shanghai alice!
Offline Anthony

Junior Newbie

« Reply #2 - Posted 2007-06-14 21:24:27 »

I was under the impression that the path only mattered when you actually tried to run compild code?

By adding a VM argument at runetime doesnt help my code compile. And its a compile issue I am having.

Screenshot of my workspace in eclipse to show what I mean.

The main issue is the "net import cannot be resolved"

The only thing I can think of is that I am ether using the wrong jogl.jar or I messed up is importing it into my workspace.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline taifunbrowser

Senior Newbie

« Reply #3 - Posted 2007-06-14 21:29:21 »

CTRL+SHIFT+O, my friend. Save afterwords too. - the JTouhou project! Mixed 3d and 2d, a multiplatform port for the classic dojin-soft series by Shanghai alice!
Offline Anthony

Junior Newbie

« Reply #4 - Posted 2007-06-14 21:36:04 »

I am still unsure that I have the correct jogl.jar

When I organize imports, it says im missing some inherited abstact methods and im using some methods of classes that are undefined.

The code is from a tutorial on this forum by the way. I dont understand why the net import wont work for me like it does for everyone else.
Every tutorial has at the top "import*;" So why is it that my jogl.jar does not have this package? Where should I go to get the correct jar that has this package because the jar from the jogl home page doesn't have it.
Offline Anthony

Junior Newbie

« Reply #5 - Posted 2007-06-14 21:45:40 »

Right so apparently...

I got my jogl.jar from here:
instead of here:

and it was the incorrect jogl.jar as I was thinking initally.

Thank you guys for replying and helping me.
just a questions, whats the jogl.jar with the com.sun packages for? It is just a different version or type?
Offline taifunbrowser

Senior Newbie

« Reply #6 - Posted 2007-06-14 21:46:34 »

ooh I think I've seen that before. The fact that "games" is in the import list implies that you're using tutorials based on some weird build of jogl XD

get the build by google searching JOGL and doing the first link.

POINT BEING, you're reading tutorials on builds of jogl that are convenienced for games, and I havent ever been able to find those Tongue

I'll stick with my vanilla build.

can't help you, man. - the JTouhou project! Mixed 3d and 2d, a multiplatform port for the classic dojin-soft series by Shanghai alice!
Offline cylab

JGO Wizard

Medals: 98

« Reply #7 - Posted 2007-06-14 22:57:44 »

Your tutorials refer to the old version of JOGL prior to the JSR implementation. The correct import now is* Just look into the official demo sources (download is last link on this page), copy the as a boilerplate and continue from there. For correct deployment, see the JOGL User's Guide. If you are doing the NeHe Tutorials, there is a JOGL port of the lessons. If you are using Netbeans, just install my project template module Wink

If you want more info on what has changed between the "old" JOGL and the JSR implementation, take a look at this thread

Mathias - I Know What [you] Did Last Summer!
Pages: [1]
  ignore  |  Print  
You cannot reply to this message, because it is very, very old.

Dwinin (71 views)
2015-11-07 13:29:08

Rems19 (80 views)
2015-10-31 01:36:56

Rems19 (73 views)
2015-10-31 01:32:37

williamwoles (106 views)
2015-10-23 10:42:59

williamwoles (92 views)
2015-10-23 10:42:45

Jervac_ (106 views)
2015-10-18 23:29:12

DarkCart (134 views)
2015-10-16 00:58:11

KaiHH (116 views)
2015-10-11 14:10:14

KaiHH (155 views)
2015-10-11 13:26:18

BurntPizza (171 views)
2015-10-08 03:11:46
Rendering resources
by Roquen
2015-11-13 14:37:59

Rendering resources
by Roquen
2015-11-13 14:36:58

Math: Resources
by Roquen
2015-10-22 07:46:10

Networking Resources
by Roquen
2015-10-16 07:12:30

Rendering resources
by Roquen
2015-10-15 07:40:48

Math: Inequality properties
by Roquen
2015-10-01 13:30:46

Math: Inequality properties
by Roquen
2015-09-30 16:06:05

HotSpot Options
by Roquen
2015-08-29 11:33:11 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‑
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!