Author Topic: importing  (Read 6326 times)

ollioikarinen

  • Guest
importing
« on: December 02, 2002, 09:10:58 am »
Hi!

I'm a beginner in Java programming (VBasic, ASP, PHP, , JavaScript and Dark Basic before) and I got really excited when I first found IDX3D and then this!

I tried to modify the bounce example, but I could'nt import the jpct.jar properly. Where should it be (in which folder) during the compiling?

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
importing
« Reply #1 on: December 02, 2002, 06:35:15 pm »
To compile it (and to run the compiled file), you need to add jpct.jar (from the libs-dir of the API-distribution) to your CLASSPATH. Depending on the OS you are using the procedure to do this may vary. To add jpct.jar temporally to the CLASSPATH (during compilation only(, something like

javac -classpath %classpath%;[path_to_jpct]\jpct.jar Bounce.java

should work. Anyway, adding it to the CLASSPATH permanently is the better solution IMHO.

Albareth

  • Guest
importing
« Reply #2 on: December 03, 2003, 01:42:58 am »
Hey!  Great job on the engine by the way.  I was wondering, how would you use jPCT in Netbeans.  My project is being handled with Netbeans and I need to know how to include it.  Thanks in advance!

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
importing
« Reply #3 on: December 03, 2003, 05:50:37 pm »
Quote from: "Albareth"
Hey!  Great job on the engine by the way.  I was wondering, how would you use jPCT in Netbeans.  My project is being handled with Netbeans and I need to know how to include it.  Thanks in advance!
Thanx.
I don't know Netbeans (have it lying around on a CD somewhere but never actually tried it...i'm using JBuilder at home and at work), so can't tell you what to do exactly. I think that you have to include the jpct.jar and maybe the lwjgl.jar into your project somehow (in JBuilder, this is under project settings/required libraries (or similar)). That should be enough to COMPILE your sources. If you want to execute it from within Netbeans and if you want to use hardware rendering for that, you have to include the lwjgl.dll as well (assuming you are using Windows), but i really don't know how to do this in Netbeans. Maybe asking this question in SUN's forum http://forum.java.sun.com/forum.jsp?forum=31 is worth a try.