Author Topic: Neolo's compilation guide  (Read 8318 times)

uakf.b

  • Administrator
  • Hero Member
  • *****
  • Posts: 566
  • Karma: +86/-12
    • View Profile
Neolo's compilation guide
« on: December 14, 2013, 07:02:29 pm »
1) Go to gcb root folder, type:
Code: [Select]
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  ;D ):
Notice: my commons-configuration-1.9.jar is "1.9" version, change to yours.
Code: [Select]
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/):
Code: [Select]
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:
Code: [Select]
java -jar gcb.jar
OR (for Linux users ONLY): If you need to fork it in background, install "screen" via yum or whatever your linux distro1, and run it as follow:

Code: [Select]
screen -dmS garena java -jar gcb.jar
To review it, type:
Code: [Select]
screen -r garena
To detach (hide to background), press keys combination CTRL+A, D (not all keys at once but hold CTRL than type A, D)

Hope it will help Linux users for easier setup.  ;D


1 CentOS:yum install screen | Linux/Debian: apt-get install screen
« Last Edit: December 15, 2013, 01:25:08 pm by Grief-Code »

Artyom91

  • Advanced Member
  • ****
  • Posts: 257
  • Karma: +2/-43
    • View Profile
Re: Neolo's compilation guide
« Reply #1 on: December 17, 2013, 03:17:52 am »
Code: [Select]
# javac -classpath "src/:bin/lib/*"  src/gcb/Main.java
-bash: javac: команда не найдена

Grief-Code

  • Guest
Re: Neolo's compilation guide
« Reply #2 on: December 17, 2013, 03:32:28 am »
This is an international forum, please make sure that you translate error messages like this always to an international speech: english.

No one will answere you if you posting other languages, more if you posting non-arabic letters.
I'm unable to understand your error message...

Regards

Artyom91

  • Advanced Member
  • ****
  • Posts: 257
  • Karma: +2/-43
    • View Profile
Re: Neolo's compilation guide
« Reply #3 on: December 17, 2013, 03:40:16 am »
Code: [Select]
# javac -classpath "src/:bin/lib/*"  src/gcb/Main.java
-bash: javac: command not found

Grief-Code

  • Guest
Re: Neolo's compilation guide
« Reply #4 on: December 17, 2013, 05:23:11 am »
You need to install the java compiler, it isnt included in your current version.

I think uakf.b has more knowledge on this.

But there is also a finished compiled version, cant you use that?

Grief-Code

  • Guest
Re: Neolo's compilation guide
« Reply #5 on: December 17, 2013, 07:24:29 am »
After some research,

you need to install this lib:
openjdk-7-jdk

Dunno what UNIX system you are using:
CentOS:
Code: [Select]
yum install openjdk-7-jdkDebian/Linux:
Code: [Select]
apt-get install openjdk-7-jdk
If this wasnt a solution for you, you need to execute then this command:
Code: [Select]
sudo update-alternatives --config javathen you need to select the row with this path:
Code: [Select]
/usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java
This should normally solve your issue :-)

Regards

Artyom91

  • Advanced Member
  • ****
  • Posts: 257
  • Karma: +2/-43
    • View Profile
Re: Neolo's compilation guide
« Reply #6 on: December 17, 2013, 08:07:28 am »
If all works for me does not need compilation?

Grief-Code

  • Guest
Re: Neolo's compilation guide
« Reply #7 on: December 17, 2013, 08:11:11 am »
If all works for me does not need compilation?

if you are able to execut this command:
Code: [Select]
java -jar gcb.jarin gcb-root/bin

You dont need to compile. There is already a precompiled version.
If this doesnt work for you, you need probably need to install the package i meantioned in the previus post.

Regards

uakf.b

  • Administrator
  • Hero Member
  • *****
  • Posts: 566
  • Karma: +86/-12
    • View Profile
Re: Neolo's compilation guide
« Reply #8 on: December 17, 2013, 10:27:59 am »
OpenJDK source is also available from http://download.java.net/openjdk/jdk7/

GG

  • Newbie
  • *
  • Posts: 14
  • Karma: +0/-0
    • View Profile
Re: Neolo's compilation guide
« Reply #9 on: December 27, 2013, 09:24:18 am »
Hello There,

I have compile problem...
i'm trying to compile gcb-master\src\gcb
When i try compile Userinfo.java it's working


But When i try to compile GChatbot.java, im getting 100 more errors :(
Code: [Select]
                                                ^
Gchatbot.java:135: error: package GCBConfig does not exist
                publicUserMessage = GCBConfig.configuration.getBoolean("gcb_bot_
public_join_message", false);
                                             ^
Gchatbot.java:136: error: package GCBConfig does not exist
                entryLevel = GCBConfig.configuration.getBoolean("gcb_bot_entry_l
evel", false);
                                      ^
Gchatbot.java:137: error: package GCBConfig does not exist
                checkSameMessage = GCBConfig.configuration.getBoolean("gcb_bot_c
heck_same_message", false);
                                            ^
Gchatbot.java:138: error: package GCBConfig does not exist
                triviaPluginAlias = GCBConfig.configuration.getBoolean("gcb_bot_
trivia_plugin_alias", false);
                                             ^
Gchatbot.java:139: error: cannot find symbol
                access_message = GCBConfig.getString("gcb_bot_access_message");
                                 ^
  symbol:   variable GCBConfig
  location: class GChatBot
Gchatbot.java:140: error: cannot find symbol
                welcome_message = GCBConfig.getString("gcb_bot_welcome_message")
;
                                  ^
  symbol:   variable GCBConfig
  location: class GChatBot
Gchatbot.java:141: error: package GCBConfig does not exist
                banned_word_detect_message = GCBConfig.configuration.getString("
gcb_bot_detect_announcement", "Banned word/phrase detected");
                                                      ^
Gchatbot.java:142: error: cannot find symbol
                owner = GCBConfig.getString("gcb_bot_owner");
                        ^
  symbol:   variable GCBConfig
  location: class GChatBot
Gchatbot.java:143: error: package GCBConfig does not exist
                commandline = GCBConfig.configuration.getBoolean("gcb_bot_comman
dline", false);
                                       ^
Gchatbot.java:146: error: package GCBConfig does not exist
                checkSpam = GCBConfig.configuration.getBoolean("gcb_bot_check_sp
am", false);
                                     ^
Gchatbot.java:147: error: package GCBConfig does not exist
                spamWarnLines = GCBConfig.configuration.getInt("gcb_bot_spam_war
n_lines", 10);
                                         ^
Gchatbot.java:148: error: package GCBConfig does not exist
                spamMaxLines = GCBConfig.configuration.getInt("gcb_bot_spam_max_
lines", 15);
                                        ^
Gchatbot.java:149: error: package GCBConfig does not exist
                spamKick = Math.max(GCBConfig.configuration.getInt("gcb_bot_spam
_kick", 5), 3);
                                             ^
Gchatbot.java:150: error: package GCBConfig does not exist
                spamWarnEquality = GCBConfig.configuration.getInt("gcb_bot_spam_
warn_equality", 16);
                                            ^
Gchatbot.java:151: error: package GCBConfig does not exist
                spamMaxEquality = GCBConfig.configuration.getInt("gcb_bot_spam_m
ax_equality", 40);
                                           ^
Gchatbot.java:245: error: package GCBConfig does not exist
                int announceInterval = GCBConfig.configuration.getInt("gcb_bot_a
uto_ann_interval", 0);
                                                ^
Gchatbot.java:247: error: cannot find symbol
                        announceThread = new AnnounceThread(garena, this, chatth
read);
                                             ^
  symbol:   class AnnounceThread
  location: class GChatBot
Gchatbot.java:255: error: cannot find symbol
                Main.println(0, "[GChatBot] Received command \"" + command + "\"
 with payload \"" + payload + "\" from " + memberRankTitle + " " + member.userna
me);
                ^
  symbol:   variable Main
  location: class GChatBot
Gchatbot.java:256: error: cannot find symbol
                Main.cmdprintln("Recieved command \"" + command + "\" with paylo
ad \"" + payload + "\" from " + memberRankTitle + " " + member.username);
                ^
  symbol:   variable Main
  location: class GChatBot
Gchatbot.java:300: error: cannot find symbol
                                UserInfo targetUser = userFromName(target.toLowe
rCase());
                                ^
  symbol:   class UserInfo
  location: class GChatBot
Gchatbot.java:314: error: cannot find symbol
                                                UserInfo user = new UserInfo();
                                                ^
  symbol:   class UserInfo
  location: class GChatBot
Gchatbot.java:314: error: cannot find symbol
                                                UserInfo user = new UserInfo();
                                                                    ^
  symbol:   class UserInfo
  location: class GChatBot
Gchatbot.java:336: error: cannot find symbol
                                UserInfo targetUser = userFromName(target.toLowe
rCase());
                                ^
  symbol:   class UserInfo
  location: class GChatBot
Gchatbot.java:358: error: cannot find symbol
                                        if(!GarenaEncrypt.isInteger(parts[0])) {

                                            ^
  symbol:   variable GarenaEncrypt
  location: class GChatBot
Gchatbot.java:369: error: package GCBConfig does not exist
                                                GCBConfig.configuration.setPrope
rty("gcb_roomid", Integer.parseInt(parts[0]));
                                                         ^
Gchatbot.java:371: error: cannot find symbol
                                                Main.println(1, "[GChatBot] Warn
ing: ignoring invalid number " + parts[0]);
                                                ^
  symbol:   variable Main
  location: class GChatBot
Gchatbot.java:375: error: package GCBConfig does not exist
                                        GCBConfig.configuration.setProperty("gcb
_roomhost", parts[1]);
                                                 ^
Gchatbot.java:394: error: cannot find symbol
                                UserInfo targetUser = userFromName(target.toLowe
rCase());
                                ^
  symbol:   class UserInfo
  location: class GChatBot
Gchatbot.java:410: error: cannot find symbol
                                                UserInfo user = new UserInfo();
                                                ^
  symbol:   class UserInfo
  location: class GChatBot
Gchatbot.java:410: error: cannot find symbol
                                                UserInfo user = new UserInfo();
                                                                    ^
  symbol:   class UserInfo
  location: class GChatBot
Gchatbot.java:435: error: cannot find symbol
                                UserInfo targetUser = userFromName(target.toLowe
rCase());
                                ^
  symbol:   class UserInfo
  location: class GChatBot
Gchatbot.java:446: error: cannot find symbol
                                                UserInfo user = new UserInfo();
                                                ^
  symbol:   class UserInfo
  location: class GChatBot
Gchatbot.java:446: error: cannot find symbol
                                                UserInfo user = new UserInfo();
                                                                    ^
  symbol:   class UserInfo
  location: class GChatBot
Gchatbot.java:464: error: cannot find symbol
                                if(parts.length < 3 || !GarenaEncrypt.isInteger(
parts[1])) {
                                                        ^
  symbol:   variable GarenaEncrypt
  location: class GChatBot
Gchatbot.java:477: error: cannot find symbol
                                UserInfo targetUser = userFromName(target);
                                ^
  symbol:   class UserInfo
  location: class GChatBot
Gchatbot.java:495: error: cannot find symbol
                                                        if(Main.DEBUG) {
                                                           ^
  symbol:   variable Main
  location: class GChatBot
Gchatbot.java:498: error: cannot find symbol
                                                        Main.println(11, "[GChat
Bot] Sleep interrupted: " + e.getLocalizedMessage());
                                                        ^
  symbol:   variable Main
  location: class GChatBot
Gchatbot.java:524: error: cannot find symbol
                                                UserInfo user = userFromName(pay
load.toLowerCase());
                                                ^
  symbol:   class UserInfo
  location: class GChatBot
Gchatbot.java:531: error: cannot find symbol
                                                UserInfo user = userFromName(pay
load.toLowerCase());
                                                ^
  symbol:   class UserInfo
  location: class GChatBot
Gchatbot.java:550: error: cannot find symbol
                                MemberInfo victim = garena.memberFromName(target
);
                                ^
  symbol:   class MemberInfo
  location: class GChatBot
Gchatbot.java:567: error: cannot find symbol
                                                if(Main.DEBUG) {
                                                   ^
  symbol:   variable Main
  location: class GChatBot
Gchatbot.java:570: error: cannot find symbol
                                                Main.println(11, "[GChatBot] Sle
ep interrupted: " + e.getLocalizedMessage());
                                                ^
  symbol:   variable Main
  location: class GChatBot
Gchatbot.java:588: error: cannot find symbol
                                MemberInfo victim = garena.memberFromName(target
);
                                ^
  symbol:   class MemberInfo
  location: class GChatBot
Gchatbot.java:605: error: cannot find symbol
                                                if(Main.DEBUG) {
                                                   ^
  symbol:   variable Main
  location: class GChatBot
Gchatbot.java:608: error: cannot find symbol
                                                Main.println(11, "[GChatBot] Sle
ep interrupted: " + e.getLocalizedMessage());
                                                ^
  symbol:   variable Main
  location: class GChatBot
Gchatbot.java:649: error: cannot find symbol
                                if(payload.equals("") || !GarenaEncrypt.isIntege
r(payload)) {
                                                          ^
  symbol:   variable GarenaEncrypt
  location: class GChatBot
Gchatbot.java:665: error: cannot find symbol
                                UserInfo targetUser = userFromName(target.toLowe
rCase());
                                ^
  symbol:   class UserInfo
  location: class GChatBot
Gchatbot.java:719: error: cannot find symbol
                                UserInfo targetUser = userFromName(target.toLowe
rCase());
                                ^
  symbol:   class UserInfo
  location: class GChatBot
Gchatbot.java:811: error: cannot find symbol
                                if(parts.length < 3 || GarenaEncrypt.isInteger(p
arts[1])) {
                                                       ^
  symbol:   variable GarenaEncrypt
  location: class GChatBot
Gchatbot.java:824: error: cannot find symbol
                                        UserInfo targetUser = userFromName(usern
ames[i]);
                                        ^
  symbol:   class UserInfo
  location: class GChatBot
Gchatbot.java:842: error: cannot find symbol
                                                                if(Main.DEBUG) {

                                                                   ^
  symbol:   variable Main
  location: class GChatBot
Gchatbot.java:845: error: cannot find symbol
                                                                Main.println(11,
 "[GChatBot] Sleep interrupted: " + e.getLocalizedMessage());
                                                                ^
  symbol:   variable Main
  location: class GChatBot
Gchatbot.java:882: error: cannot find symbol
                                MemberInfo target = garena.memberFromName(userna
me);
                                ^
  symbol:   class MemberInfo
  location: class GChatBot
Gchatbot.java:926: error: cannot find symbol
                                MemberInfo victim = garena.memberFromName(target
);
                                ^
  symbol:   class MemberInfo
  location: class GChatBot
Gchatbot.java:930: error: cannot find symbol
                                UserInfo targetUser = userFromName(victim.userna
me.toLowerCase());
                                ^
  symbol:   class UserInfo
  location: class GChatBot
Gchatbot.java:947: error: cannot find symbol
                                UserInfo targetUser = userFromName(target);
                                ^
  symbol:   class UserInfo
  location: class GChatBot
100 errors

Please help me i'm trying to compile this about 3 months :((



uakf.b

  • Administrator
  • Hero Member
  • *****
  • Posts: 566
  • Karma: +86/-12
    • View Profile
Re: Neolo's compilation guide
« Reply #10 on: December 27, 2013, 12:05:57 pm »
You need to cd .. (so that you are in /gcb folder, not /gcb/src) and then run javac gcb/Main.java

Brazilian

  • Newbie
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Re: Neolo's compilation guide
« Reply #11 on: December 27, 2013, 03:16:34 pm »
I have a question. Which program should I lower to compile gcb, I'm using Windows 7 operating system

uakf.b

  • Administrator
  • Hero Member
  • *****
  • Posts: 566
  • Karma: +86/-12
    • View Profile
Re: Neolo's compilation guide
« Reply #12 on: December 27, 2013, 06:50:37 pm »
I have a question. Which program should I lower to compile gcb, I'm using Windows 7 operating system
You need the JDK

GG

  • Newbie
  • *
  • Posts: 14
  • Karma: +0/-0
    • View Profile
Re: Neolo's compilation guide
« Reply #13 on: December 28, 2013, 11:02:12 am »
i'm done with cd
100 error decreased to 46
Please check this one
Code: [Select]
                PKCS1Encoding cipher = new PKCS1Encoding(engine);
                                           ^
  symbol:   class PKCS1Encoding
  location: class GarenaEncrypt
.\gcb\GarenaEncrypt.java:127: error: cannot find symbol
                AsymmetricKeyParameter privKey = PrivateKeyFactory.createKey(rsa
Key.getPrivateKeyInfo());
                ^
  symbol:   class AsymmetricKeyParameter
  location: class GarenaEncrypt
.\gcb\GarenaEncrypt.java:127: error: cannot find symbol
                AsymmetricKeyParameter privKey = PrivateKeyFactory.createKey(rsa
Key.getPrivateKeyInfo());
                                                 ^
  symbol:   variable PrivateKeyFactory
  location: class GarenaEncrypt
.\gcb\GarenaEncrypt.java:128: error: cannot find symbol
                RSAEngine engine = new RSAEngine();
                ^
  symbol:   class RSAEngine
  location: class GarenaEncrypt
.\gcb\GarenaEncrypt.java:128: error: cannot find symbol
                RSAEngine engine = new RSAEngine();
                                       ^
  symbol:   class RSAEngine
  location: class GarenaEncrypt
.\gcb\GarenaEncrypt.java:129: error: cannot find symbol
                PKCS1Encoding cipher = new PKCS1Encoding(engine);
                ^
  symbol:   class PKCS1Encoding
  location: class GarenaEncrypt
.\gcb\GarenaEncrypt.java:129: error: cannot find symbol
                PKCS1Encoding cipher = new PKCS1Encoding(engine);
                                           ^
  symbol:   class PKCS1Encoding
  location: class GarenaEncrypt
.\gcb\GarenaTCP.java:113: error: cannot find symbol
                } catch(ConversionException e) {
                        ^
  symbol:   class ConversionException
  location: class GarenaTCP
.\gcb\GarenaTCP.java:119: error: cannot find symbol
                } catch(ConversionException e) {
                        ^
  symbol:   class ConversionException
  location: class GarenaTCP
.\gcb\WC3Interface.java:79: error: cannot find symbol
                } catch(ConversionException ce) {
                        ^
  symbol:   class ConversionException
  location: class WC3Interface
.\gcb\WC3Interface.java:123: error: cannot find symbol
                        } catch(ConversionException ce) {
                                ^
  symbol:   class ConversionException
  location: class WC3Interface
.\gcb\GCBConfig.java:29: error: cannot find symbol
                        configuration = new PropertiesConfiguration(config_file)
;
                                            ^
  symbol:   class PropertiesConfiguration
  location: class GCBConfig
.\gcb\GCBConfig.java:30: error: cannot find symbol
                } catch(ConfigurationException e) {
                        ^
  symbol:   class ConfigurationException
  location: class GCBConfig
46 errors

C:\GCB\bin>javac CHatbot.java
javac: file not found: CHatbot.java
Usage: javac <options> <source files>
use -help for a list of possible options

C:\GCB\bin>javac GChatBot.java
GChatBot.java:18: error: package org.apache.commons.configuration does not exist

import org.apache.commons.configuration.ConversionException;
                                       ^
.\gcb\plugin\PluginManager.java:25: error: package org.apache.commons.configurat
ion does not exist
import org.apache.commons.configuration.ConfigurationException;
                                       ^
.\gcb\plugin\PluginManager.java:26: error: package org.apache.commons.configurat
ion does not exist
import org.apache.commons.configuration.ConversionException;
                                       ^
.\gcb\plugin\PluginManager.java:27: error: package org.apache.commons.configurat
ion does not exist
import org.apache.commons.configuration.PropertiesConfiguration;
                                       ^
.\gcb\GarenaEncrypt.java:35: error: package org.bouncycastle.crypto.encodings do
es not exist
import org.bouncycastle.crypto.encodings.PKCS1Encoding;
                                        ^
.\gcb\GarenaEncrypt.java:36: error: package org.bouncycastle.crypto.engines does
 not exist
import org.bouncycastle.crypto.engines.RSAEngine;
                                      ^
.\gcb\GarenaEncrypt.java:37: error: package org.bouncycastle.crypto.params does
not exist
import org.bouncycastle.crypto.params.AsymmetricKeyParameter;
                                     ^
.\gcb\GarenaEncrypt.java:38: error: package org.bouncycastle.crypto.util does no
t exist
import org.bouncycastle.crypto.util.PrivateKeyFactory;
                                   ^
.\gcb\GarenaEncrypt.java:39: error: package org.bouncycastle.jce.provider does n
ot exist
import org.bouncycastle.jce.provider.BouncyCastleProvider;
                                    ^
.\gcb\GarenaEncrypt.java:40: error: package org.bouncycastle.openssl does not ex
ist
import org.bouncycastle.openssl.PEMKeyPair;
                               ^
.\gcb\GarenaEncrypt.java:41: error: package org.bouncycastle.openssl does not ex
ist
import org.bouncycastle.openssl.PEMParser;
                               ^
.\gcb\GarenaTCP.java:22: error: package org.apache.commons.configuration does no
t exist
import org.apache.commons.configuration.ConversionException;
                                       ^
.\gcb\WC3Interface.java:23: error: package org.apache.commons.configuration does
 not exist
import org.apache.commons.configuration.ConversionException;
                                       ^
.\gcb\GarenaEncrypt.java:53: error: cannot find symbol
        PEMKeyPair rsaKey;
        ^
  symbol:   class PEMKeyPair
  location: class GarenaEncrypt
.\gcb\GCBConfig.java:8: error: package org.apache.commons.configuration does not
 exist
import org.apache.commons.configuration.Configuration;
                                       ^
.\gcb\GCBConfig.java:9: error: package org.apache.commons.configuration does not
 exist
import org.apache.commons.configuration.ConfigurationException;
                                       ^
.\gcb\GCBConfig.java:10: error: package org.apache.commons.configuration does no
t exist
import org.apache.commons.configuration.PropertiesConfiguration;
                                       ^
.\gcb\GCBConfig.java:19: error: cannot find symbol
        public static Configuration configuration;
                      ^
  symbol:   class Configuration
  location: class GCBConfig
GChatBot.java:1607: error: cannot find symbol
                        } catch(ConversionException e) {
                                ^
  symbol:   class ConversionException
  location: class GChatBot
.\gcb\plugin\PluginManager.java:88: error: cannot find symbol
                                PropertiesConfiguration pluginConfig = null;
                                ^
  symbol:   class PropertiesConfiguration
  location: class PluginManager
.\gcb\plugin\PluginManager.java:90: error: cannot find symbol
                                        pluginConfig = new PropertiesConfigurati
on(file);
                                                           ^
  symbol:   class PropertiesConfiguration
  location: class PluginManager
.\gcb\plugin\PluginManager.java:91: error: cannot find symbol
                                } catch(ConfigurationException e) {
                                        ^
  symbol:   class ConfigurationException
  location: class PluginManager
.\gcb\plugin\PluginManager.java:201: error: cannot find symbol
                } catch(ConversionException e) {
                        ^
  symbol:   class ConversionException
  location: class PluginManager
.\gcb\GarenaEncrypt.java:99: error: cannot find symbol
                BouncyCastleProvider bcp = new BouncyCastleProvider();
                ^
  symbol:   class BouncyCastleProvider
  location: class GarenaEncrypt
.\gcb\GarenaEncrypt.java:99: error: cannot find symbol
                BouncyCastleProvider bcp = new BouncyCastleProvider();
                                               ^
  symbol:   class BouncyCastleProvider
  location: class GarenaEncrypt
.\gcb\GarenaEncrypt.java:104: error: cannot find symbol
                        PEMParser pemreader = new PEMParser(new FileReader("gkey
.pem"));
                        ^
  symbol:   class PEMParser
  location: class GarenaEncrypt
.\gcb\GarenaEncrypt.java:104: error: cannot find symbol
                        PEMParser pemreader = new PEMParser(new FileReader("gkey
.pem"));
                                                  ^
  symbol:   class PEMParser
  location: class GarenaEncrypt
.\gcb\GarenaEncrypt.java:105: error: cannot find symbol
                        rsaKey = (PEMKeyPair) pemreader.readObject();
                                  ^
  symbol:   class PEMKeyPair
  location: class GarenaEncrypt
.\gcb\GarenaEncrypt.java:119: error: cannot find symbol
                AsymmetricKeyParameter privKey = PrivateKeyFactory.createKey(rsa
Key.getPrivateKeyInfo());
                ^
  symbol:   class AsymmetricKeyParameter
  location: class GarenaEncrypt
.\gcb\GarenaEncrypt.java:119: error: cannot find symbol
                AsymmetricKeyParameter privKey = PrivateKeyFactory.createKey(rsa
Key.getPrivateKeyInfo());
                                                 ^
  symbol:   variable PrivateKeyFactory
  location: class GarenaEncrypt
.\gcb\GarenaEncrypt.java:120: error: cannot find symbol
                RSAEngine engine = new RSAEngine();
                ^
  symbol:   class RSAEngine
  location: class GarenaEncrypt
.\gcb\GarenaEncrypt.java:120: error: cannot find symbol
                RSAEngine engine = new RSAEngine();
                                       ^
  symbol:   class RSAEngine
  location: class GarenaEncrypt
.\gcb\GarenaEncrypt.java:121: error: cannot find symbol
                PKCS1Encoding cipher = new PKCS1Encoding(engine);
                ^
  symbol:   class PKCS1Encoding
  location: class GarenaEncrypt
.\gcb\GarenaEncrypt.java:121: error: cannot find symbol
                PKCS1Encoding cipher = new PKCS1Encoding(engine);
                                           ^
  symbol:   class PKCS1Encoding
  location: class GarenaEncrypt
.\gcb\GarenaEncrypt.java:127: error: cannot find symbol
                AsymmetricKeyParameter privKey = PrivateKeyFactory.createKey(rsa
Key.getPrivateKeyInfo());
                ^
  symbol:   class AsymmetricKeyParameter
  location: class GarenaEncrypt
.\gcb\GarenaEncrypt.java:127: error: cannot find symbol
                AsymmetricKeyParameter privKey = PrivateKeyFactory.createKey(rsa
Key.getPrivateKeyInfo());
                                                 ^
  symbol:   variable PrivateKeyFactory
  location: class GarenaEncrypt
.\gcb\GarenaEncrypt.java:128: error: cannot find symbol
                RSAEngine engine = new RSAEngine();
                ^
  symbol:   class RSAEngine
  location: class GarenaEncrypt
.\gcb\GarenaEncrypt.java:128: error: cannot find symbol
                RSAEngine engine = new RSAEngine();
                                       ^
  symbol:   class RSAEngine
  location: class GarenaEncrypt
.\gcb\GarenaEncrypt.java:129: error: cannot find symbol
                PKCS1Encoding cipher = new PKCS1Encoding(engine);
                ^
  symbol:   class PKCS1Encoding
  location: class GarenaEncrypt
.\gcb\GarenaEncrypt.java:129: error: cannot find symbol
                PKCS1Encoding cipher = new PKCS1Encoding(engine);
                                           ^
  symbol:   class PKCS1Encoding
  location: class GarenaEncrypt
.\gcb\GarenaTCP.java:113: error: cannot find symbol
                } catch(ConversionException e) {
                        ^
  symbol:   class ConversionException
  location: class GarenaTCP
.\gcb\GarenaTCP.java:119: error: cannot find symbol
                } catch(ConversionException e) {
                        ^
  symbol:   class ConversionException
  location: class GarenaTCP
.\gcb\WC3Interface.java:79: error: cannot find symbol
                } catch(ConversionException ce) {
                        ^
  symbol:   class ConversionException
  location: class WC3Interface
.\gcb\WC3Interface.java:123: error: cannot find symbol
                        } catch(ConversionException ce) {
                                ^
  symbol:   class ConversionException
  location: class WC3Interface
.\gcb\GCBConfig.java:29: error: cannot find symbol
                        configuration = new PropertiesConfiguration(config_file)
;
                                            ^
  symbol:   class PropertiesConfiguration
  location: class GCBConfig
.\gcb\GCBConfig.java:30: error: cannot find symbol
                } catch(ConfigurationException e) {
                        ^
  symbol:   class ConfigurationException
  location: class GCBConfig
46 errors

C:\GCB\bin>^A

Brazilian

  • Newbie
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Re: Neolo's compilation guide
« Reply #14 on: December 28, 2013, 01:19:37 pm »
I'm Not Getting, this giving this error>