How to install Jpct??? pls

Started by Okyo, August 13, 2007, 08:54:46 PM

Previous topic - Next topic

Okyo

Hello..im new in this business and i try to install jpct, but i dont know where i shall extract the jpct.rar
im using the java editor and it tells me that he cant find com.threed.jpct?
plse..

EgonOlsen

It's not a rar, it's a jar and there's no need to extract it. What you have to do, is to add it to the classpath. When using the command line, this is done via java -cp <your-jar>;<another-jar>...
When using an editor/IDE, there should be an option to add jars to the project somewhere. One you've added the jpct.jar, do the same with the jars that exist in the lwjgl-subdir if you want to use OpenGL. You also have to add the native parts of LWJGL by setting the java.library.path to the directory that contains them. Again, on the command line this is done via -Djava.library.path=<your-dir>. Your editor may have a similar option.

Okyo

Sorry, but i dont anderstand...ok from new..
1. I have downloaded a file from www.jpct.com => "jpctapi.rar" and extracted it, now i have 3 Folders
doc,examples,lib!
what to do with this folders?

EgonOlsen

You can't download a rar when there is only a zip...anyway: You now have a lib-directory separated into two sub-dirs (jpct and lwjgl-<version>). Those dirs contain some jars, the lwjgl-dir contains some dlls in addition. Add these jars/dlls as advised above. If you are not sure how to do this, please consult the help/manual of the editor you are using on how to do it, as can't possibly know or own every editor that exists.

Okyo

ok, now i anderstand..BUT
I use the Java Editor it has a configuration-menu where i can adjust jar but there is already a path written...
.;C:\Programme\Java\jdk1.6.0_02\jre\lib\rt.jar

EgonOlsen

You can add additional jars by using the separator-char ";"

edit: See the batch files in the examples dir for a reference.

Okyo

ah..there is a user-path adjustment able...thanx..
cu soon with next questions.)

Mizuki Takase

I like compiling and running things manually. I installed JPCT by placing the jpct.jar onto my <DIRECTORY OF THE JAVA SDK>/lib/jpct directory. Afterwards, I set up the CLASSPATH system environment so that the jar file is there.

In Java NetBeans, you can simply add the jar onto your library.

Melssj5

When I used Forte for JAVA I used to extract the classes and put them together with my code so they become part of my project, not as linked resources. Anyway now that I use eclipse is very easy to add jars.
Nada por ahora