Hi !
Featured games (91)
games approved by the League of Dukes
Games in Showcase (757)
Games in Android Showcase (229)
games submitted by our members
Games in WIP (844)
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  
  xith3d and lwjgl/jogl dependencies  (Read 2695 times)
0 Members and 1 Guest are viewing this topic.
Offline GregCooper

Junior Newbie

« Posted 2003-11-09 23:29:08 »

I was curious about the 'xith3d -> jogl/lwjgl' dependency.  

I am really only interested in using jogl with xith3d.

If I just use the binaries things work great.  However, I went ahead and brought the xith3d source into my project and noticed that some of the code has "lwjgl' dependencies in it.

As an example, "" has the following import:

    import org.lwjgl.opengl.*;

I am building and running a small example that uses Shape3d.  When I don't have the xith3d source included in my project everything works great.  If I do include the source, I get exceptions to the effect that it is expecting the "org.lwgl.opengl.*" data (which makes total sense).

How come this "lwjgl" dependency doesn't seep to exist when not building from the source.  (Are there two implementations of Shape3D somewhere or something?)

Any help appreciated,

Offline William Denniss

JGO Coder

Projects: 2

Fire at will

« Reply #1 - Posted 2003-11-10 00:59:38 »

general question first:

It doesn't complain that lwjgl doen't exist because when you are compiling somthing, it only needs to know where classes that you are using are (and you arn't using lwjgl by the sound of it).

If infact Xith3D needed that lwjgl class to operate then an exception would be thrown at runtime when the JVM tries to dynamically load the class (because it can't find it).

However if the JVM never needs that class (lets say because you never actually call any Xith3D code which uses a lwjgl class) then no excpeitons will be thrown.

However, when compiling the Xith3D source, the compiler hits that import statements and bails out because it can't find lwjgl.

Specifically to xith:

I don't know why the com.xith3d.scenegraph Shape3D object would import lwjgl, maybe it's a bug.  I just removed those two lines on my local copy and it doesn't compile as there are a few methods using it.  If you think LWJGL should be removed from that code, I suggest you submit an Issue so it can be looked at.


Offline Yuri Vl. Gushchin

Senior Devvie

Speak Java!

« Reply #2 - Posted 2003-11-10 07:27:03 »

This is known issue. We should remove LWJGL dependencies from everywhere except [possibly future] LWJGL renderer code. For building, appropriate separate targets should be created and I would prefer to make JOGL target default.

BTW, this is a minor issue, besides sometimes really annoying...


Yuri Vl. Gushchin
JProof Group
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline GregCooper

Junior Newbie

« Reply #3 - Posted 2003-11-10 10:33:05 »

Great.  Thanks for the info.    Really wanted to just make sure I wasn't losing my sanity.

Pages: [1]
  ignore  |  Print  

EgonOlsen (77 views)
2018-06-10 19:43:48

EgonOlsen (57 views)
2018-06-10 19:43:44

EgonOlsen (77 views)
2018-06-10 19:43:20

DesertCoockie (259 views)
2018-05-13 18:23:11

nelsongames (157 views)
2018-04-24 18:15:36

nelsongames (156 views)
2018-04-24 18:14:32

ivj94 (897 views)
2018-03-24 14:47:39

ivj94 (161 views)
2018-03-24 14:46:31

ivj94 (810 views)
2018-03-24 14:43:53

Solater (174 views)
2018-03-17 05:04:08
Java Gaming Resources
by philfrei
2017-12-05 19:38:37

Java Gaming Resources
by philfrei
2017-12-05 19:37:39

Java Gaming Resources
by philfrei
2017-12-05 19:36:10

Java Gaming Resources
by philfrei
2017-12-05 19:33:10

List of Learning Resources
by elect
2017-03-13 14:05:44

List of Learning Resources
by elect
2017-03-13 14:04:45

SF/X Libraries
by philfrei
2017-03-02 08:45:19

SF/X Libraries
by philfrei
2017-03-02 08:44:05 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!