hi , i am explaining what i have done and what is my prob exactly. i am in an urgent stage and help is urgent for me. so i am telling every thing in detailed . so some one help me. i am very much confused with building smslib with ant. so i found found the .class files in the dist/class folder. now i copied them to location where SendMessage.java is placed(place where javac is located). then i complied it. every thing gone well and the class file is generated. but when i tried to run it this is what happened!!!
H:\java temp\java programs\Java\jdk1.6.0_15\bin>java SendMessage Example: Send message from a serial gsm modem. SMSLib: A Java API library for sending and receiving SMS via a GSM modem or othe r supported gateways. This software is distributed under the terms of the Apache v2.0 License. Web Site: http://smslib.org Version: 3.4.6 Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/ log4j/Logg er at org.smslib.helper.Logger.<init>(Logger.java:34) at org.smslib.Service.<init>(Service.java:104) at SendMessage.doIt(SendMessage.java:28) at SendMessage.main(SendMessage.java:78) Caused by: java.lang.ClassNotFoundException: org.apache.log4j.Logger at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java: 301) at java.lang.ClassLoader.loadClass(ClassLoader.java:252) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java: 320) ... 4 more H:\java temp\java programs\Java\jdk1.6.0_15\bin> i have installed, i mean all that copy and save .jar files from other files to respective locations as mentioned in the installing help doc. but the above runtime error is coming. i am very new to library installation. so please accept my mistakes and help me please. -- 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.
