Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (477)
Games in Android Showcase (109)
games submitted by our members
Games in WIP (536)
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 1355 times)
0 Members and 1 Guest are viewing this topic.
Offline Anthony

Junior Newbie





« Posted 2007-06-14 23: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 net.java.games.jogl.*; always says it cannot find the net package.
The JOGL.jar file has a bunch of com.sun.openGL and com.sun.media 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 23: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

http://beam.to/jtouhou - 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 23: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.
http://67.160.19.184/jogl.JPG

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 23:29:21 »

CTRL+SHIFT+O, my friend. Save afterwords too.

http://beam.to/jtouhou - 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 23: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 net.java.games.jogl.*;" 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 23:45:40 »

Right so apparently...

I got my jogl.jar from here:  https://jogl.dev.java.net/
instead of here:https://games-binaries.dev.java.net/build/index.html

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 23: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.

http://beam.to/jtouhou - the JTouhou project! Mixed 3d and 2d, a multiplatform port for the classic dojin-soft series by Shanghai alice!
Offline cylab

JGO Ninja


Medals: 38



« Reply #7 - Posted 2007-06-15 00:57:44 »

Your tutorials refer to the old version of JOGL prior to the JSR implementation. The correct import now is javax.media.opengl.* Just look into the official demo sources (download is last link on this page), copy the Gears.java 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.

 

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

The first screenshot will be displayed as a thumbnail.

CogWheelz (18 views)
2014-07-30 21:08:39

Riven (26 views)
2014-07-29 18:09:19

Riven (15 views)
2014-07-29 18:08:52

Dwinin (13 views)
2014-07-29 10:59:34

E.R. Fleming (34 views)
2014-07-29 03:07:13

E.R. Fleming (12 views)
2014-07-29 03:06:25

pw (43 views)
2014-07-24 01:59:36

Riven (44 views)
2014-07-23 21:16:32

Riven (30 views)
2014-07-23 21:07:15

Riven (31 views)
2014-07-23 20:56:16
List of Learning Resources
by SilverTiger
2014-07-31 18:29:50

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

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

HotSpot Options
by dleskov
2014-07-08 03:59:08

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:58:24

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:47:22

How do I start Java Game Development?
by ra4king
2014-05-17 11:13:37

HotSpot Options
by Roquen
2014-05-15 09:59:54
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!