The only thing you need is an installation of Apache Ant. Ant looks for a file called "build.xml" in the current directory. build.xml contains all the necessary instructions to create a new build of Xith3D.

Ant is a very powerful tool. It's used for creating the Getting Started Guide, too. In the case of the GSG a single ant call creates the PDF file, the HTML files, zipped files for every section, self-executing jars for every example and more.

Be sure to look at the appropriate section in the Getting Started Guide: (..) The only thing you need is an installation of Apache Ant. Ant looks for a file called "build.xml" in the current directory. build.xml contains all the necessary instructions to create a new build of Xith3D.

Yes, thanks Jens. Of course I've already read your nice tutorial. :-)Still I wonder what ANT would do different compared to my single AWK command line (which really just compiles all .java files of Xith3d) and even more: how does ANT resolve the LWJGL dependency? Several Xith3d source files contain lines like:

1 2 3

importorg.lwjgl.*;importorg.lwjgl.opengl.*;importorg.lwjgl.input.*;

So I suppose I can't compile Xith3d currently without these import files? (which I don't have got at the mo)

Quote

I read somewhere that you are familiar with C/C++. You probably know the "make" command and Makefiles. Ant is similar, but in my opinion easier to use and designed to be platform independant.

"Make", yes I know this fossil but are no fan of it (the step from Object Pascal to C/C++ "make" has been rigid).If possible I'd like to use GNU AWK before installing "yet another tool". :-)

This tutorial was written by Will, who has contributed a lot to the Getting Started Guide. :-)

Quote

Still I wonder what ANT would do different compared to my single AWK command line (which really just compiles all .java files of Xith3d) and even more: how does ANT resolve the LWJGL dependency?

If you download Xith3D from CVS you'll have all the third-party libraries in one directory. Ant puts them all in the classpath when compiling, so you should not have any problems. Besides this Ant generates xith3d.jar, which is pretty useful. Ant can also be used to generate Javadoc (ant javadoc) or a community build (ant cbuild).

Btw. your script doesn't work for me (dir: *.java: No such file or directory).

Quote

If possible I'd like to use GNU AWK before installing "yet another tool". :-)

I think Ant is used by a lot of projects, is integrated in Eclipse and has won several awards. It's really worth downloading. :-)

However if you don't want Ant you can still put lwjgl.jar in your classpath when compiling Xith3D. This does the trick, too.

This tutorial was written by Will, who has contributed a lot to the Getting Started Guide. :-)

I see! So it's Will's nice tutorial. You produced the PDF? ;-)

Quote

If you download Xith3D from CVS you'll have all the third-party libraries in one directory.

I've downloaded the community build tar.gz but just used the Xith3d src directory. Now I get the point that I've to include the lwjgl.jar too... That's it. Thanks.This leads to the question: Why does the Xith3d source need lwjgl? I definitely don't need the lwjgl.jar in order to run all the Xith3d demos. ;-)

Quote

Btw. your script doesn't work for me (dir: *.java: No such file or directory).

.. and you've to start it from within the "src/" directory (where a "dir" shows the "com/" folder then). These braindead \" are just needed for the sucking Win32 dosbox. On a real console (Unix) it would read:

I am using Eclipse 3.0 on a windows platform. Here's an 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:

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. Add lwjgl libraries also there if you need them.

Hi Install ant , it's easy, really, and it's not a *huge* download, and like Jens said, it does everything for you , I use it for my ac3d loader, and when the time comes, the distributions for my game will be compiled and packaged using it. It's worth it, and far quicker than trying to debug your own make or gawk or whatever command

Ant is so much better suited to Java applications than 'make' or just shell commands IMHO - especially since most Windows boxes don't have unix tools installed. Considering it's only a meg and a half to download and is the only build tool supported by the Xith3D developers I'd say that's your best at least for this project.

I don't use Eclipse - but wouldn't it have some sort of Ant integration/plugin/whatever?

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