Author Topic: Set up  (Read 4325 times)

Offline patm1987

  • byte
  • *
  • Posts: 2
    • View Profile
Set up
« 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).

Thanks

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11745
    • View Profile
    • http://www.jpct.net
Set up
« Reply #1 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.

Offline patm1987

  • byte
  • *
  • Posts: 2
    • View Profile
thanks
« Reply #2 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

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11745
    • View Profile
    • http://www.jpct.net
Re: thanks
« Reply #3 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.

patm1987notlogged

  • Guest
Thanks
« Reply #4 on: February 08, 2004, 03:46:44 am »
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.

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11745
    • View Profile
    • http://www.jpct.net
Set up
« Reply #5 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.