Main Menu

Set up

Started by patm1987, December 13, 2003, 07:06:03 PM

Previous topic - Next topic

patm1987

I am a Linux user, mepis (based off of Debian), and would just like to know how to set up jpct.  I am a little confused about where to put all the files (if it was just jar files it would be fine, but then there are the .o's and stuff).

Thanks

EgonOlsen

If you don't intend to use OpenGL, putting the jpct.jar in the CLASSPATH is all there is to do. To use OpenGL via LWJGL in Linux...to be honest, i don't know much about this combination... :? I think that setting the library path for the VM using
"-Djava.library.path=" should work if you let it point to the native libraries of LWJGL. Don't forget to include the lwjgl.jar to the CLASSPATH as well. If this doesn't work, maybe you'll get some help about how to setup LWJGL for Linux here: http://www.puppygames.net/forums/viewforum.php?f=3

Hope this helps.

patm1987

Sorry for the late reply, I've had the flu for the past couple of days.

Ok, thanks.  I got a little confused when I was presented with a bunch of files, and not much stating how to set them up, and my instructer couldn't tell me either (he downloaded it, but couldn't get it to work), but he has only been teaching java for two years now.

thanks alot

EgonOlsen

Quote from: "patm1987"I got a little confused when I was presented with a bunch of files...
As mentioned, most of these files are not required to use jPCT in your own projects. To be precise, only the files in the lib-directory are needed and the lwjgl stuff (the API comes with the Windows version only) only if you want to use OpenGL. But maybe i should think about adding a "how to setup" section to the manual. Problem with this is, that everyone and his mother is using a different OS and/or IDE and it's impossible to cover them all.

patm1987notlogged

err,
sorry I didn't reply, I got kinda tied up for, er, a couple of months.  I don't like 2 not thank for a reply
that would be great.

EgonOlsen

I just installed a Linux on a spare machine and got jPCT to work without a hassle. The command line looks like this:

java -Djava.library.path=lib/lwjgl-0.8/ -cp lib/lwjgl-0.8/lwjgl.jar:jpct.jar ......

You still need to download the Linux binaries for LWJGL of course.