jPCT - a 3d engine for Java => Support => Topic started by: patm1987 on December 13, 2003, 07:06:03 pm

Title: Set up
Post by: patm1987 on December 13, 2003, 07:06:03 pm
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).

Title: Set up
Post by: EgonOlsen on December 14, 2003, 02:47:26 am
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.
Title: thanks
Post by: patm1987 on December 19, 2003, 11:28:45 pm
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
Title: Re: thanks
Post by: EgonOlsen on December 20, 2003, 04:18:05 pm
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.
Title: Thanks
Post by: patm1987notlogged on February 08, 2004, 03:46:44 am
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.
Title: Set up
Post by: EgonOlsen on February 24, 2004, 10:21:20 pm
I just installed a Linux on a spare machine and got jPCT to work without a hassle. The command line looks like this:

Code: [Select]
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.