SMSlib 编译问题
SMSlib compilation issues
我正在尝试从 here 构建 SMSLib 主源。按照安装说明,我已将以下 jar 文件复制到 jre 的 \lib\ext 个文件夹中。
comm.jar
commons-net-3.3.jar
jsmpp-2.1.0.jar
我已将 win32com.dll 复制到 \jre\bin。我也放了 javax.comm.properties \jre\lib 目录。当我尝试使用 ANT 编译源代码时。它显示 smslib 源代码本身存在很多错误
Buildfile: C:\Users\Keerthi\Downloads\smslib-v3-master\build.xml
compile.smslib:
[javac] Compiling 2 source files to C:\Users\Keerthi\Downloads\smslib-v3-master\dist\classes
[javac] warning: [options] bootstrap class path not set in conjunction with -source 1.6
[javac] C:\Users\Keerthi\Downloads\smslib-v3-master\src\java\org\smslib\smpp\jsmpp\JSMPPGateway.java:282: error: method does not override or implement a method from a supertype
[javac] @Override
[javac] ^
[javac] C:\Users\Keerthi\Downloads\smslib-v3-master\src\java\org\smslib\smpp\jsmpp\JSMPPGateway.java:302: error: cannot find symbol
[javac] encoding = Alphabet.ALPHA_UNSPECIFIED_2;
[javac] ^
[javac] symbol: variable ALPHA_UNSPECIFIED_2
[javac] location: class Alphabet
[javac] C:\Users\Keerthi\Downloads\smslib-v3-master\src\java\org\smslib\smpp\jsmpp\JSMPPGateway.java:309: error: no suitable constructor found for GeneralDataCoding(Alphabet,MessageClass,boolean)
[javac] dataCoding = new GeneralDataCoding(encoding, MessageClass.CLASS0, true);
[javac] ^
[javac] constructor GeneralDataCoding.GeneralDataCoding(boolean,boolean,MessageClass,Alphabet) is not applicable
[javac] (actual and formal argument lists differ in length)
[javac] constructor GeneralDataCoding.GeneralDataCoding(int) is not applicable
[javac] (actual and formal argument lists differ in length)
[javac] constructor GeneralDataCoding.GeneralDataCoding(byte) is not applicable
[javac] (actual and formal argument lists differ in length)
[javac] constructor GeneralDataCoding.GeneralDataCoding() is not applicable
[javac] (actual and formal argument lists differ in length)
[javac] C:\Users\Keerthi\Downloads\smslib-v3-master\src\java\org\smslib\smpp\jsmpp\JSMPPGateway.java:312: error: no suitable constructor found for GeneralDataCoding(Alphabet,MessageClass,boolean)
[javac] dataCoding = new GeneralDataCoding(encoding, MessageClass.CLASS1, true);
[javac] ^
[javac] constructor GeneralDataCoding.GeneralDataCoding(boolean,boolean,MessageClass,Alphabet) is not applicable
[javac] (actual and formal argument lists differ in length)
[javac] constructor GeneralDataCoding.GeneralDataCoding(int) is not applicable
[javac] (actual and formal argument lists differ in length)
[javac] constructor GeneralDataCoding.GeneralDataCoding(byte) is not applicable
[javac] (actual and formal argument lists differ in length)
[javac] constructor GeneralDataCoding.GeneralDataCoding() is not applicable
[javac] (actual and formal argument lists differ in length)
[javac] C:\Users\Keerthi\Downloads\smslib-v3-master\src\java\org\smslib\smpp\jsmpp\JSMPPGateway.java:315: error: no suitable constructor found for GeneralDataCoding(Alphabet,MessageClass,boolean)
[javac] dataCoding = new GeneralDataCoding(encoding, MessageClass.CLASS2, true);
[javac] ^
[javac] constructor GeneralDataCoding.GeneralDataCoding(boolean,boolean,MessageClass,Alphabet) is not applicable
[javac] (actual and formal argument lists differ in length)
[javac] constructor GeneralDataCoding.GeneralDataCoding(int) is not applicable
[javac] (actual and formal argument lists differ in length)
[javac] constructor GeneralDataCoding.GeneralDataCoding(byte) is not applicable
[javac] (actual and formal argument lists differ in length)
[javac] constructor GeneralDataCoding.GeneralDataCoding() is not applicable
[javac] (actual and formal argument lists differ in length)
[javac] C:\Users\Keerthi\Downloads\smslib-v3-master\src\java\org\smslib\smpp\jsmpp\JSMPPGateway.java:318: error: no suitable constructor found for GeneralDataCoding(Alphabet,MessageClass,boolean)
[javac] dataCoding = new GeneralDataCoding(encoding, MessageClass.CLASS3, true);
[javac] ^
[javac] constructor GeneralDataCoding.GeneralDataCoding(boolean,boolean,MessageClass,Alphabet) is not applicable
[javac] (actual and formal argument lists differ in length)
[javac] constructor GeneralDataCoding.GeneralDataCoding(int) is not applicable
[javac] (actual and formal argument lists differ in length)
[javac] constructor GeneralDataCoding.GeneralDataCoding(byte) is not applicable
[javac] (actual and formal argument lists differ in length)
[javac] constructor GeneralDataCoding.GeneralDataCoding() is not applicable
[javac] (actual and formal argument lists differ in length)
[javac] C:\Users\Keerthi\Downloads\smslib-v3-master\src\java\org\smslib\smpp\jsmpp\JSMPPGateway.java:321: error: no suitable constructor found for GeneralDataCoding(Alphabet,MessageClass,boolean)
[javac] dataCoding = new GeneralDataCoding(encoding, MessageClass.CLASS1, true);
[javac] ^
[javac] constructor GeneralDataCoding.GeneralDataCoding(boolean,boolean,MessageClass,Alphabet) is not applicable
[javac] (actual and formal argument lists differ in length)
[javac] constructor GeneralDataCoding.GeneralDataCoding(int) is not applicable
[javac] (actual and formal argument lists differ in length)
[javac] constructor GeneralDataCoding.GeneralDataCoding(byte) is not applicable
[javac] (actual and formal argument lists differ in length)
[javac] constructor GeneralDataCoding.GeneralDataCoding() is not applicable
[javac] (actual and formal argument lists differ in length)
[javac] 7 errors
[javac] 1 warning
请帮我解决这个问题。
JSMPP
jar 版本问题。一旦我将它更新到 v2.2.1。它就像一个魅力。
注意:当您从 github 构建源代码时,您不必将上述 jar 文件复制到 \lib\ext 目录中。这些 jar 已经存在于源的 lib 目录中。
我正在尝试从 here 构建 SMSLib 主源。按照安装说明,我已将以下 jar 文件复制到 jre 的 \lib\ext 个文件夹中。
comm.jar
commons-net-3.3.jar
jsmpp-2.1.0.jar
我已将 win32com.dll 复制到 \jre\bin。我也放了 javax.comm.properties \jre\lib 目录。当我尝试使用 ANT 编译源代码时。它显示 smslib 源代码本身存在很多错误
Buildfile: C:\Users\Keerthi\Downloads\smslib-v3-master\build.xml
compile.smslib:
[javac] Compiling 2 source files to C:\Users\Keerthi\Downloads\smslib-v3-master\dist\classes
[javac] warning: [options] bootstrap class path not set in conjunction with -source 1.6
[javac] C:\Users\Keerthi\Downloads\smslib-v3-master\src\java\org\smslib\smpp\jsmpp\JSMPPGateway.java:282: error: method does not override or implement a method from a supertype
[javac] @Override
[javac] ^
[javac] C:\Users\Keerthi\Downloads\smslib-v3-master\src\java\org\smslib\smpp\jsmpp\JSMPPGateway.java:302: error: cannot find symbol
[javac] encoding = Alphabet.ALPHA_UNSPECIFIED_2;
[javac] ^
[javac] symbol: variable ALPHA_UNSPECIFIED_2
[javac] location: class Alphabet
[javac] C:\Users\Keerthi\Downloads\smslib-v3-master\src\java\org\smslib\smpp\jsmpp\JSMPPGateway.java:309: error: no suitable constructor found for GeneralDataCoding(Alphabet,MessageClass,boolean)
[javac] dataCoding = new GeneralDataCoding(encoding, MessageClass.CLASS0, true);
[javac] ^
[javac] constructor GeneralDataCoding.GeneralDataCoding(boolean,boolean,MessageClass,Alphabet) is not applicable
[javac] (actual and formal argument lists differ in length)
[javac] constructor GeneralDataCoding.GeneralDataCoding(int) is not applicable
[javac] (actual and formal argument lists differ in length)
[javac] constructor GeneralDataCoding.GeneralDataCoding(byte) is not applicable
[javac] (actual and formal argument lists differ in length)
[javac] constructor GeneralDataCoding.GeneralDataCoding() is not applicable
[javac] (actual and formal argument lists differ in length)
[javac] C:\Users\Keerthi\Downloads\smslib-v3-master\src\java\org\smslib\smpp\jsmpp\JSMPPGateway.java:312: error: no suitable constructor found for GeneralDataCoding(Alphabet,MessageClass,boolean)
[javac] dataCoding = new GeneralDataCoding(encoding, MessageClass.CLASS1, true);
[javac] ^
[javac] constructor GeneralDataCoding.GeneralDataCoding(boolean,boolean,MessageClass,Alphabet) is not applicable
[javac] (actual and formal argument lists differ in length)
[javac] constructor GeneralDataCoding.GeneralDataCoding(int) is not applicable
[javac] (actual and formal argument lists differ in length)
[javac] constructor GeneralDataCoding.GeneralDataCoding(byte) is not applicable
[javac] (actual and formal argument lists differ in length)
[javac] constructor GeneralDataCoding.GeneralDataCoding() is not applicable
[javac] (actual and formal argument lists differ in length)
[javac] C:\Users\Keerthi\Downloads\smslib-v3-master\src\java\org\smslib\smpp\jsmpp\JSMPPGateway.java:315: error: no suitable constructor found for GeneralDataCoding(Alphabet,MessageClass,boolean)
[javac] dataCoding = new GeneralDataCoding(encoding, MessageClass.CLASS2, true);
[javac] ^
[javac] constructor GeneralDataCoding.GeneralDataCoding(boolean,boolean,MessageClass,Alphabet) is not applicable
[javac] (actual and formal argument lists differ in length)
[javac] constructor GeneralDataCoding.GeneralDataCoding(int) is not applicable
[javac] (actual and formal argument lists differ in length)
[javac] constructor GeneralDataCoding.GeneralDataCoding(byte) is not applicable
[javac] (actual and formal argument lists differ in length)
[javac] constructor GeneralDataCoding.GeneralDataCoding() is not applicable
[javac] (actual and formal argument lists differ in length)
[javac] C:\Users\Keerthi\Downloads\smslib-v3-master\src\java\org\smslib\smpp\jsmpp\JSMPPGateway.java:318: error: no suitable constructor found for GeneralDataCoding(Alphabet,MessageClass,boolean)
[javac] dataCoding = new GeneralDataCoding(encoding, MessageClass.CLASS3, true);
[javac] ^
[javac] constructor GeneralDataCoding.GeneralDataCoding(boolean,boolean,MessageClass,Alphabet) is not applicable
[javac] (actual and formal argument lists differ in length)
[javac] constructor GeneralDataCoding.GeneralDataCoding(int) is not applicable
[javac] (actual and formal argument lists differ in length)
[javac] constructor GeneralDataCoding.GeneralDataCoding(byte) is not applicable
[javac] (actual and formal argument lists differ in length)
[javac] constructor GeneralDataCoding.GeneralDataCoding() is not applicable
[javac] (actual and formal argument lists differ in length)
[javac] C:\Users\Keerthi\Downloads\smslib-v3-master\src\java\org\smslib\smpp\jsmpp\JSMPPGateway.java:321: error: no suitable constructor found for GeneralDataCoding(Alphabet,MessageClass,boolean)
[javac] dataCoding = new GeneralDataCoding(encoding, MessageClass.CLASS1, true);
[javac] ^
[javac] constructor GeneralDataCoding.GeneralDataCoding(boolean,boolean,MessageClass,Alphabet) is not applicable
[javac] (actual and formal argument lists differ in length)
[javac] constructor GeneralDataCoding.GeneralDataCoding(int) is not applicable
[javac] (actual and formal argument lists differ in length)
[javac] constructor GeneralDataCoding.GeneralDataCoding(byte) is not applicable
[javac] (actual and formal argument lists differ in length)
[javac] constructor GeneralDataCoding.GeneralDataCoding() is not applicable
[javac] (actual and formal argument lists differ in length)
[javac] 7 errors
[javac] 1 warning
请帮我解决这个问题。
JSMPP
jar 版本问题。一旦我将它更新到 v2.2.1。它就像一个魅力。
注意:当您从 github 构建源代码时,您不必将上述 jar 文件复制到 \lib\ext 目录中。这些 jar 已经存在于源的 lib 目录中。