Main Menu

importing

Started by ollioikarinen, December 02, 2002, 09:10:58 AM

Previous topic - Next topic

ollioikarinen

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?

EgonOlsen

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

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!

EgonOlsen

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.