Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (492)
Games in Android Showcase (112)
games submitted by our members
Games in WIP (556)
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  
  Using xith3d with Eclipse  (Read 2531 times)
0 Members and 1 Guest are viewing this topic.
Offline Cyberjim

Senior Newbie




Java games rock!


« Posted 2003-11-23 14:33:30 »

Hi, I just installed xith3d and I have no plroblem running the demos. I have a problem when using xith3d in Eclipse. I have approx 12 errors that I cant seem to fix. Most of them are related with OpenGL.

Im using the CVS build 2003-11-23

Exemple : gl.viewport(0, 0, width, height); //gl.viewport is undefined for the Typr GL, Im getting the same with gl.maxtrixMode.

Also, GL.PROJECTION cannot be resolved.

The other error Im getting is dataBufferAddrs[loop] = Sys.getDirectBufferAddress(dataBuffers[loop]); // The method getDirectBufferAddress is undefined for the type Sys.

Should I be using an official build instead ?

Any help would be appreciated.

Thank you

Offline Yuri Vl. Gushchin

Senior Member




Speak Java!


« Reply #1 - Posted 2003-11-23 14:52:19 »

I also use Eclipse with Xith3D, but I use different approach.

I created a copy of Java Runtime [for my development purposes only] and installed all the bits of code (including jogl, joal, xith3d, etc.) as standatd extensions (i.e. in jre/lib/ext and jre/bin). Then I created separate JRE in Eclipse and assigned it to my project that uses Xith3D, so I can debug, run and compile without any problems.

BTW, deployment of the app should NOT rely on the installation of Xith3D as standard extencion.

Yuri

Yuri Vl. Gushchin
JProof Group
Offline Jens

Senior Member




Java for games!


« Reply #2 - Posted 2003-11-23 14:52:29 »

I use Xith3D with Eclipse 3.0M4 on Linux. You have to make sure that eclipse finds all the necessary libraries. Have you installed all necessary jar's (except xith3d.jar) and native libs in the JRE you are using? (please check that you are using the right JRE) Have you added xith3d.jar to your classpath? Do other community builds work for you?

Xith3D Getting Started Guide (PDF,HTML,Source)
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Cyberjim

Senior Newbie




Java games rock!


« Reply #3 - Posted 2003-11-23 15:06:21 »

Hi, thanks for replying.

Basicly I copied all .jar in /lib/ext of my java j2re1.4.2_02 and the .dll in /bin

I didnt had xith3d.jar to the classpath, Im guessing that under windows, classpath is an environment variable ?
Offline cfmdobbie

Senior Member


Medals: 1


Who, me?


« Reply #4 - Posted 2003-11-23 15:17:48 »

Your problem is that the LWJGL content in Xith3D is compiled against a much earlier version than the lwjgl.jar your environment is finding.  The correct jar to use is under /third-party/lwjgl in the Xith3D distribution.

Hellomynameis Charlie Dobbie.
Offline Jani Laakso

Junior Member




Do it with Java!


« Reply #5 - Posted 2003-11-23 15:32:23 »

I am using Eclipse 3.0 (build id: 200310101454).  Here's example what I did:

I've first created a java project called Xith3d. Then I used the CVS view for checking out the whole Xith3d CVS into existing project (Xith3d). Next I click the project with right mb and select properties. From there I did the following:

1. select tab "Java Build Path".
I remove current build path and add new one by clicking button "Add new folder", now my build path reads "xith3d/src" (right) instead of the default "xith3d" (wrong).

2. select tab "Libraries"
Click button "Add JARs..."
Add the following libraries to your classpath
third-party/misc/junit.jar
third-party/misc/log4j.jar
third-party/misc/vorbis.jar
third-party/vecmath/vecmath.jar
third-party/xith/xith_utilities.jar
third-party/lwjgl/examples.jar
third-party/lwjgl/lwjgl.jar
third-party/joal/windows/joal.jar
third-party/jogl/jogl-win32/jogl.jar

3. Select tab "Order and export" (not mandatory for Xith examples)
Check every library that you wish to use on a project that depends on Xith3d, e.g. your own Xith3d related test project.


One thing, when you run e.g. Xith3d tests, tell JVM from where to find native libraries. You can do it by selecting run from the menus and then selecting "Arguments" tab and then adding the following (fix pathes) to VM arguments: box:
-Djava.library.path="D:\eclipse\workspace\xith3d\third-party\jogl\jogl-win32;"
This makes sure that you use always the same jogl that Xith3d revision is meant to be using.
Offline Cyberjim

Senior Newbie




Java games rock!


« Reply #6 - Posted 2003-11-23 15:38:10 »

It seems that downloading the whole third-party libraries in the third-party.tar.gz corrected my problems... At first I downloaded them from the subdirectories (http://www.xith.org/download/third-party/) in your downloads section and I got all those errors. Now I download the third-party.tar.gz file (http://www.xith.org/download/third-party.tar.gz) and Im not getting anymore errors. Maybe the two LWJGL aren't the same version ?

Anyway it's working now,

Thanks a lot
Offline moovida

Senior Newbie




Java games rock! Moovida too!


« Reply #7 - Posted 2003-11-23 16:44:15 »

Please permit me one more question.
I use eclipse on linux.
Where can I get the lwjgl.so? The third party package only supplies the .dll's.

Kind regards
Andrea

...life is like a song and you should understand
everybody got the base but few have good arrangements...
-"growing in one week"- Moovida
Offline Jens

Senior Member




Java for games!


« Reply #8 - Posted 2003-11-23 17:22:44 »

Quote
Where can I get the lwjgl.so? The third party package only supplies the .dll's.


Actually you don't need the native LWJGL libs to compile Xith3D. Currently Xith3D only supports Jogl (this probably changes).

However it would still be good to have the native libs for LWJGL in the right place.

Xith3D Getting Started Guide (PDF,HTML,Source)
Offline Jani Laakso

Junior Member




Do it with Java!


« Reply #9 - Posted 2003-11-23 17:27:18 »

Quote

Where can I get the lwjgl.so? The third party package only supplies the .dll's.


I wonder why it exists only for windows.
Here's a link to lwjgl download page:
http://sourceforge.net/project/showfiles.php?group_id=58488
Download lwjgl-0.8-glibc2.3-linux.zip, I assume .so file is there, at least the filename indicates it.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline moovida

Senior Newbie




Java games rock! Moovida too!


« Reply #10 - Posted 2003-11-23 18:58:55 »

Jani_Laakso was absolutely right.
Got the package.

Now it works, thanks.
Regards, Andrea

...life is like a song and you should understand
everybody got the base but few have good arrangements...
-"growing in one week"- Moovida
Offline William Denniss

JGO Coder


Projects: 2


Fire at will


« Reply #11 - Posted 2003-11-23 21:40:58 »

I have posted a bug on the LWJGL dependancy problem, #46 with a list of all files using org.lwjgl.

https://xith3d.dev.java.net/issues/show_bug.cgi?id=46

It would be good if Xith3D could compile and run without LWJGL there at all (that is if you removed the src/com/xith3d/render/lwjgl/)

Will.

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.

Nickropheliac (16 views)
2014-08-31 22:59:12

TehJavaDev (23 views)
2014-08-28 18:26:30

CopyableCougar4 (33 views)
2014-08-22 19:31:30

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

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

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

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

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

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

BurntPizza (49 views)
2014-08-09 21:09:32
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!