http://smslib.org/doc/installation/
On Feb 16, 11:22 am, sandeep <[email protected]> wrote: > I installed SUN's JDK 1.5 and now I got an error as below, > > [ora...@erptest classes]$ /home/oracle/SMSLib/Java_Installed/ > jdk1.5.0_17/bin/java -Dsmsserver.configdir=/home/oracle/SMSLib/ > SMSServer/src/java/org/smslib/smsserver/SMSServer.conf > org.smslib.smsserver.SMSServer > SMSLib: A Java API library for sending and receiving SMS via a GSM > modem or other supported gateways. > This software is distributed under the terms of the Apache v2.0 > License. > Web Site:http://smslib.org > > SMSLib API version: 3.3.3 > SMSServer version: 3.3.3 > Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/ > log4j/Logger > at org.smslib.helper.Logger.<init>(Logger.java:41) > at org.smslib.Service.<init>(Service.java:81) > at org.smslib.smsserver.SMSServer.<init>(SMSServer.java:69) > at org.smslib.smsserver.SMSServer.main(SMSServer.java:472) > > Sandeep. > > On Feb 16, 1:00 pm, Thanasis <[email protected]> wrote: > > > I don't know if this can be executed in a different Java environment - > > never tried that. I work with SUN JDK. > > > You also need to correctly configure the SMSServer.conf file. > > > On Feb 16, 8:04 am,sandeep<[email protected]> wrote: > > > > Hello Thanasis, > > > > As you said , I ran it , but with the same results as below, > > > > [ora...@erptest classes]$ java -Dsmsserver.configdir=/home/oracle/ > > > SMSLib/SMSServer/src/java/org/smslib/smsserver/SMSServer.conf > > > org.smslib.smsserver.SMSServer > > > Exception in thread "main" java.lang.NoClassDefFoundError: while > > > resolving class: org.smslib.smsserver.SMSServer > > > at java.lang.VMClassLoader.resolveClass(java.lang.Class) (/usr/lib/ > > > libgcj.so.5.0.0) > > > at java.lang.Class.initializeClass() (/usr/lib/libgcj.so.5.0.0) > > > at java.lang.Class.forName(java.lang.String, boolean, > > > java.lang.ClassLoader) (/usr/lib/libgcj.so.5.0.0) > > > at java.lang.Class.forName(java.lang.String) (/usr/lib/libgcj.so. > > > 5.0.0) > > > at gnu.gcj.runtime.FirstThread.run() (/usr/lib/libgcj.so.5.0.0) > > > at _Jv_ThreadRun(java.lang.Thread) (/usr/lib/libgcj.so.5.0.0) > > > at _Jv_RunMain(java.lang.Class, byte const, int, byte const, > > > boolean) (/usr/lib/libgcj.so.5.0.0) > > > at __gcj_personality_v0 (/home/oracle/SMSLib/SMSServer/dist/classes/ > > > java.version=1.4.2) > > > at __libc_start_main (/lib/tls/libc-2.3.4.so) > > > at _Jv_RegisterClasses (/home/oracle/SMSLib/SMSServer/dist/classes/ > > > java.version=1.4.2) > > > Caused by: java.lang.ClassNotFoundException: java.lang.StringBuilder > > > not found in [file:/usr/share/java/libgcj-3.4.3.jar, file:./, core:/] > > > at java.net.URLClassLoader.findClass(java.lang.String) (/usr/lib/ > > > libgcj.so.5.0.0) > > > at gnu.gcj.runtime.VMClassLoader.findClass(java.lang.String) (/usr/ > > > lib/libgcj.so.5.0.0) > > > at java.lang.ClassLoader.loadClass(java.lang.String, boolean) (/usr/ > > > lib/libgcj.so.5.0.0) > > > at _Jv_FindClass(_Jv_Utf8Const, java.lang.ClassLoader) (/usr/lib/ > > > libgcj.so.5.0.0) > > > at java.lang.Class.forName(java.lang.String, boolean, > > > java.lang.ClassLoader) (/usr/lib/libgcj.so.5.0.0) > > > at _Jv_BytecodeVerifier.verify_instructions_0() (/usr/lib/libgcj.so. > > > 5.0.0) > > > at _Jv_VerifyMethod(_Jv_InterpMethod) (/usr/lib/libgcj.so.5.0.0) > > > at _Jv_PrepareClass(java.lang.Class) (/usr/lib/libgcj.so.5.0.0) > > > at _Jv_WaitForState(java.lang.Class, int) (/usr/lib/libgcj.so. > > > 5.0.0) > > > at java.lang.VMClassLoader.linkClass0(java.lang.Class) (/usr/lib/ > > > libgcj.so.5.0.0) > > > at java.lang.VMClassLoader.resolveClass(java.lang.Class) (/usr/lib/ > > > libgcj.so.5.0.0) > > > ...9 more > > > > I have a few clarifications. > > > > 1. Is there anything to be configured , before running the server? > > > and, > > > 2. do i need SUN's JDK to run it? > > > > I have not done any configuration here. I just downloaded the SMSLib > > > v3.3.3 (Sources + Binaries, compiled with JDK 5) and unzipped it in a > > > directory and trying to run the server. > > > >Sandeep. > > > > On Feb 13, 4:36 pm, Thanasis <[email protected]> wrote: > > > > > Go to the dist/classes and try to run: > > > > > java -Dsmsserver.configdir=<where your config is> > > > > org.smslib.smsserver.SMSServer > > > > > Does this run? > > > > By the way, you are running on GNU Java and not SUN's JDK. > > > > > On Feb 13, 1:06 pm,sandeep<[email protected]> wrote: > > > > > > Hi , > > > > > > Now, I am getting the below exception, when i run this(its on linux). > > > > > > Command:(to start server) > > > > > > java -classpath =/home/oracle/SMSLib/SMSServer/dist/lib/ > > > > > smslib-3.3.3.jar -Dsmsserver.configdir=/home/oracle/SMSLib/SMSServer/ > > > > > src/java/org/smslib/smsserver/ org.smslib.smsserver.SMSServer > > > > > > Exception: > > > > > > Exception in thread "main" java.lang.NoClassDefFoundError: > > > > > org.smslib.smsserver.SMSServer > > > > > at gnu.gcj.runtime.FirstThread.run() (/usr/lib/libgcj.so.5.0.0) > > > > > at _Jv_ThreadRun(java.lang.Thread) (/usr/lib/libgcj.so.5.0.0) > > > > > at _Jv_RunMain(java.lang.Class, byte const, int, byte const, > > > > > boolean) (/usr/lib/libgcj.so.5.0.0) > > > > > at __gcj_personality_v0 (/home/oracle/SMSLib/SMSServer/ > > > > > java.version=1.4.2) > > > > > at __libc_start_main (/lib/tls/libc-2.3.4.so) > > > > > at _Jv_RegisterClasses (/home/oracle/SMSLib/SMSServer/ > > > > > java.version=1.4.2) > > > > > > Please do help me in resolving this. > > > > > > Regards, > > > > >Sandeep. > > > > > > On Feb 13, 10:29 am,sandeep<[email protected]> wrote: > > > > > > > Hi, > > > > > > > I am planning to use SMSServer but I dont no where to start. Can > > > > > > anyone please tell me how to start using it on a linux machine. I > > > > > > also > > > > > > went through the docs section of SMSlib.org, but didnt understand > > > > > > how > > > > > > to go about it. I have just downloaded the SMSLib v3.3.3 (Sources + > > > > > > Binaries, compiled with JDK 5). Please do help me. > > > > > > > Thanks & Regards, > > > > > >Sandeep.- Hide quoted text - > > > > > - Show quoted text -- Hide quoted text - > > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "SMSLib User Group" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/SMSLib?hl=en -~----------~----~----~----~------~----~------~--~---
