[Beginner] Where do I start?

Hi,

I wanted to start with a simple JAVA JOGL application, but I’m a bit confused about the site and CVS system.

Can somebody tell me something about the setup that I need to take to get a basic example running (since every way I try I get an error like jar file not found or no main class def found, etc…)

What is a good example to start with and which JAVA compiler and setting s should i use?

Thanks very much…

Mike

Psssssst over here :slight_smile:
/me thinks that we should have a sticky thread explaining the basics of getting JOGL to work on one’s machine :stuck_out_tongue:

Or you could look at the gears demo thats provided with the distribution… more than likely, if JOGL needs a how to get it to work section it should be on the WIKI.

You don’t need to actually access the CVS system if you just want to use JOGL. Just jump into the file sharing system and grab the latest binary for your platform…

As, as mentioned above, the gears demo is fairly simple and comes with source. It should give you a good place to get started…

Kev

“just jump in…”

Well , for one if you want to get the demos and the needed makefiles. I’ve tried this by hand (under WinXP/CYGWIN) and find that making GLEEM is an issue. I’d like to experiment w/ it as well. Also while Gears and some other bits work OK I still get errors that the net.java.games.jogl.util package is not install even though doing a dump of the jogl.jar show that it is. You’d think that a:

-classpath “$CLASSPATH;jogl.jar”

should do the trick

thanx in advance for any help

You don’t actually need to use the C/C++ source at all. Skip the make files and just download the binaries that are made available in the file sharing directory. This is of course if you’re working on a standard platform (windows/linux/solaris/mac)

You need the appropriate native libraries in the currently directory (or at least referenced in the java.library.path= system property).

Kev

Oh I do not want the C/C++ source I just want the JAVA source for the demos and the appropriate makefiles for them, I already did the right-mouse downloads from the filesharing webpages and the rebuilt the source tree. Unfortunately I am having issues building the demos. I’m just trying to see if I can build local versions before I start on my own code. I have found this to be a wise course of action as it seperates out some of the local installation issues.

Ahhhh, misundertood what you were getting out with the makefiles… isn’t it all built with ANT?

Anyway, if you cut and paste the actual error you’re getting at compile time / runtime then someone might be able to spot whats going on…

Apologises again,

Kev

“if you cut and paste the actual error”

OK, I got GLEEM to compile, typo =:<

now for demos/util

my compile call is:

<jaba_bin_dir>/javac -source 1.4 -classpath “${CLASSPATH};c:\jogl;c;\jogl\jogl.jar” *.java

and the errors are:

ObjReader.java:46: package net.java.games.jogl.util does not exist
import net.java.games.jogl.util.*;
^
ObjReader.java:305: cannot resolve symbol
symbol : variable BufferUtils
location: class demos.util.ObjReader
vertices = BufferUtils.newFloatBuffer(newVertices.size());
^
ObjReader.java:307: cannot resolve symbol
symbol : variable BufferUtils
location: class demos.util.ObjReader
normals = BufferUtils.newFloatBuffer(newVertexNormals.size());
^
3 errors

I’ve used the compile line above for GLEEM and Gears.java and Gears runs fine although I am not sure if GLEEM will work with the infinite shadow demo I want see run.

Is this a direct cut and paste?

If so, c;\jogl\jogl.jar should c:\jogl\jogl.jar

Note the change from c; to c:

Kev

sorry, no not a direct cut-n-paste.
the “;” is in fact a “:”

bloody cygwin uses a Win32 cmd so one can not cut-n-paste text