Author Topic: How to install Jpct??? pls  (Read 7799 times)

Offline Okyo

  • byte
  • *
  • Posts: 4
    • View Profile
How to install Jpct??? pls
« on: August 13, 2007, 08:54:46 pm »
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..

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: How to install Jpct??? pls
« Reply #1 on: August 13, 2007, 09:03:07 pm »
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.

Offline Okyo

  • byte
  • *
  • Posts: 4
    • View Profile
Re: How to install Jpct??? pls
« Reply #2 on: August 13, 2007, 09:27:44 pm »
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?

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: How to install Jpct??? pls
« Reply #3 on: August 13, 2007, 09:30:48 pm »
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.

Offline Okyo

  • byte
  • *
  • Posts: 4
    • View Profile
Re: How to install Jpct??? pls
« Reply #4 on: August 13, 2007, 09:41:37 pm »
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

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: How to install Jpct??? pls
« Reply #5 on: August 13, 2007, 09:48:53 pm »
You can add additional jars by using the separator-char ";"

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

Offline Okyo

  • byte
  • *
  • Posts: 4
    • View Profile
Re: How to install Jpct??? pls
« Reply #6 on: August 13, 2007, 09:49:24 pm »
ah..there is a user-path adjustment able...thanx..
cu soon with next questions.)

Offline Mizuki Takase

  • int
  • **
  • Posts: 97
    • View Profile
Re: How to install Jpct??? pls
« Reply #7 on: August 13, 2007, 09:49:44 pm »
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.

Offline Melssj5

  • double
  • *****
  • Posts: 724
    • View Profile
Re: How to install Jpct??? pls
« Reply #8 on: August 13, 2007, 11:13:20 pm »
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