2

INSTALLATION

GTGE is a pack of standard java classes that bundled in JAR file.
Therefore it is fairly simple to use GTGE API. But just in case there is someone who forget how to use JAR or does not understand how to install third party library, we'll explain it here.

To use GTGE, simply include GTGE lib (golden_x_x.jar) into your java classpath.

There are two ways to include GTGE API into your classpath:
Note: Since we use Windows Operating System, all the settings here are for Windows user.

  1. Include GTGE into your system.

  2. The convenient one. Only have to setup once and GTGE is ready to use anytime anywhere.
    Open windows start menu (bottom left your screen), open run, then type "sysedit" to edit file autoexec.bat.
    Add this line:
       SET CLASSPATH=%CLASSPATH%;"<GTGE path>\golden_x_x.jar"
    
    Note: GTGE path is the path where GTGE lib (golden_x_x.jar) located.
    For example:
    GTGE version 0.1 and located in C:\GTGE
       SET CLASSPATH=%CLASSPATH%;"C:\GTGE\golden_0_1.jar"
    
    Quick explanation:
    This told Windows to add GTGE library into its classpath variable.
    Everytime you compiling or running Java application, Java will search classes from classpath variable, GTGE is successfully found there!
    well done!

  3. Include GTGE on the fly.

  4. This one a bit bothersome. Every compiling and running the game, you must specify GTGE lib in the game classpath. Note: GTGE path could be relative path to your source code.
    For example:
    GTGE version 0.1 and located in C:\Java Game\lib
    Your game source code in C:\Java Game.
    Compiling/Running:
       C:\Java Game>javac -classpath %CLASSPATH%;lib\golden_0_1.jar YourGame.java
       C:\Java Game>java -classpath %CLASSPATH%;lib\golden_0_1.jar YourGame
    
    Quick explanation:
    This told Java to search classes from specified classpath.
    In this case the system classpath (%CLASSPATH%) and GTGE library (lib\golden_0_1.jar).

That's it, GTGE has been installed into your machine ^^
(troubles installing GTGE? visit our forum)
    Now let's see GTGE schema....

1 2 3 4 5 6 7
<< Previous Page Next Page >>