Компиляция GCB на linux VPS\Dedicated servers

Venmade

Команда форума
Project creator
Сообщения
434
Симпатии
547
Steam
Twitter
Vkontakte
Garena
Venmade
B.net
Venmade
#1
1) Go to gcb root folder, type:

Код: [Выделить]
javac -classpath "src/:bin/lib/*" src/gcb/Main.java

2) Go to src/gcb/, create file called manifest.txt which contains (stolen somewhere on this forum
):

Notice: my commons-configuration-1.9.jar is "1.9" version, change to yours.

Код: [Выделить]
Manifest-Version: 1.0
Class-Path: . lib/bcprov-jdk15-146.jar lib/commons-collections-3.2.1.jar lib/commons-configuration-1.9.jar lib/commons-lang-2.5.jar lib/commons-logging-1.1.1.jar lib/mysql-connector-java-5.1.13-bin.jar
Main-Class: gcb.Main
3) Create executable file (you are still in src/gcb/):

Код: [Выделить]
jar cvfm gcb.jar manifest.txt *.class

4) As for me, I had issues with that gcb.Main class which cannot be found whatever I do, so at this step I just moved gdb.jar file to bin/ directory, and entire src/gcb folder to bin/ also (near gcb.jar).

5) Go to /bin and run gcb:

Код: uakf.b


You may need to: install screen,openjdk-7-jdk
 

Users Who Are Viewing This Тема (Users: 1, Guests: 0)