Go to the dist/classes directory and type: java examples.modem.ReadMessages
Note: The ReadMessages tries to read from COM1. You may have to edit (and rebuild) the example before you can actually use it. On Mar 24, 5:52 am, Vit <[email protected]> wrote: > re-check it... > no lucky ;( > > C:\Documents and Settings\Administrator>java -cp smsserver-3.3.3.jar > examples.mo > dem.SendMessage > Exception in thread "main" java.lang.NoClassDefFoundError: examples/ > modem/SendMe > ssage > Caused by: java.lang.ClassNotFoundException: > examples.modem.SendMessage > at java.net.URLClassLoader$1.run(Unknown Source) > at java.security.AccessController.doPrivileged(Native Method) > at java.net.URLClassLoader.findClass(Unknown Source) > at java.lang.ClassLoader.loadClass(Unknown Source) > at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) > at java.lang.ClassLoader.loadClass(Unknown Source) > at java.lang.ClassLoader.loadClassInternal(Unknown Source) > Could not find the main class: examples.modem.SendMessage. Program > will exit. > > C:\Documents and Settings\Administrator> > > On 24 Mar, 12:35, Aryo Sanjaya <[email protected]> wrote: > > > Yes, you are mistyped the 'examples' package, not just 'example'. Please > > recheck. > > > Aryo Sanjayahttp://facebook.aryosanjaya.net > > > On Tue, Mar 24, 2009 at 09:20, Vit <[email protected]> wrote: > > > > I have tried with the following > > > > C:\Documents and Settings\Administrator>java -cp smsserver-3.3.3.jar > > > example.mod > > > em.SendMessage > > > > but I get an error message.... it seems that I'm missing something.... > > > > Exception in thread "main" java.lang.NoClassDefFoundError: example/ > > > modem/SendMes > > > sage > > > Caused by: java.lang.ClassNotFoundException: example.modem.SendMessage > > > at java.net.URLClassLoader$1.run(Unknown Source) > > > at java.security.AccessController.doPrivileged(Native Method) > > > at java.net.URLClassLoader.findClass(Unknown Source) > > > at java.lang.ClassLoader.loadClass(Unknown Source) > > > at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) > > > at java.lang.ClassLoader.loadClass(Unknown Source) > > > at java.lang.ClassLoader.loadClassInternal(Unknown Source) > > > Could not find the main class: example.modem.SendMessage. Program > > > will exit. > > > > C:\Documents and Settings\Administrator> > > > > does anyone know wht can I do???? > > > > thanks > > > > Vit > > > > On 24 Mar, 09:24, Aryo Sanjaya <[email protected]> wrote: > > > > You may first modify file src/java/examples/modem/SendMessage.java > > > > > Change the modem properties, and the target number, then recompile it. > > > > > To run it, exec with: > > > > > java -cp YourJar.jar examples.modem.SendMessage > > > > > Aryo Sanjayahttp://facebook.aryosanjaya.net > > > > > On Tue, Mar 24, 2009 at 07:12, Vit <[email protected]> wrote: > > > > > > Hi, I',m here again..... > > > > > > I have compiled the smsserver and now??? > > > > > > I have the .jar file.... how can I use it with the SMS Example??? > > > > > > thanks > > > > > > vit > > > > > > On 24 Mar, 07:22, Vit <[email protected]> wrote: > > > > > > Thanks, I have found the tools.jar, but now what is the next step??? > > > > > > where I have to put the file of SMSLib??? how can I compile the > > > > > > files??? > > > > > > > thanks > > > > > > > vit > > > > > > > On 24 Mar, 04:04, Thanasis <[email protected]> wrote: > > > > > > > > The "tools.jar" should be located somewhere in the ANT directory > > > tree. > > > > > > > Copy it to the java's lib/ext directories. > > > > > > > > On Mar 23, 4:50 pm, Vit <[email protected]> wrote: > > > > > > > > > Hi All, > > > > > > > > I'm trying to understand how this solution works > > > > > > > > I have followed the instruction in the followin link: > > > > >http://smslib.org/doc/installation/ > > > > > > > > and I have succesfully done the following: > > > > > > > > - Installed Sun JDK (jdk-6u12-windows-i586-p.exe) > > > > > > > > - Installed Java Comm > > > > > > > > - Installed RxTx > > > > > > > > - Installed Apache ANT > > > > > > > > - Installed Simple logging facade for Java (slf4j) > > > > > > > > - Installed Apache Jakarta Commons - NET > > > > > > > > - Installed Java Mail > > > > > > > > > now I should build the SMSLib with Apache Ant, but I'm having a > > > lot > > > > > of > > > > > > > > issues: > > > > > > > > > running ant I get Unable to locate tools.jar > > > > > > > > > my question is: where I have to put the SMSLib v3 files???? > > > > > > > > > how can I compile them???? > > > > > > > > > thanks > > > > > > > > > Vit --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
