|
Installation
Installation Instructions
Installation InstructionsPrerequisitesTo use SMSLib, you should install the following components:
Important NoteStarting from SMSLib v3.4, the installation procedure has changed a bit. Some SMSServer components that required extra dependencies have been pulled out of the main source tree. This was done in order to reduce the required third party libraries & dependency files for those wanting to use the core library. The core SMSLib/SMSServer source files can now be compiled with only two dependencies: the Simple logging facade for Java and the Apache Commons/NET for the IP modem driver. All other add-on SMSServer components are moved in the /misc/SMSServer/Interfaces/ directory, organized by development status. Installation instructions for these specific components are given in the relevant SMSServer documentation pages. Java Communications LibraryYou have two options:
Java Comm InstallationThe installation procedure for both the old Java Comm v2 and the new Java Comm v3 is identical. Java Comm v2 is for Win32 systems and it is available on the Download page. Java Comm v3 is for Linux systems and it is available for download directly from SUN downloads (registration is required) To install it, unzip the downloaded archive file in a temporary place and do the following copies:
If you have a separate JRE directory, do the same copies for the JREDIR directory! RxTx InstallationThe official RxTx binary pack is available here. The provided link will download the distro with some standard binaries (for linux 32bit, 64 bit, etc). If binaries for your specific operating system are not included, you may consider recompiling RxTx yourselves. For a custom Win64 RxTx distro, have a look at the CloudHopper's web site. To install it, unzip the distribution file in a temporary place and do the following copies:
If you have a separate JRE directory, do the same copies for the JREDIR directory! Apache ANTDownload and install Apache Ant from here. Simple logging facade for Java (slf4j)Java logging facade (slf4j) acts as the middle layer between an application and the various logging systems. Download slf4j from here. You need to have the slf4j-api-1.5.6.jar file (1.5.6 was the current version at the time of this writing) somewhere in your classpath or in Java's lib/ext directories, together with one of the following files, depending on which logging system you use:
Apache Jakarta Commons - NETDownload Apache Jakarta Commons/NET from here. You need to have the commons-net-2.0.jar file (2.0 was the current version at the time of this writing) somewhere in your classpath or in Java's lib/ext directories. Building SMSLibThe ANT build file provides the following targets:
Running ant (i.e. without a target) will give you a help screen. Now what?If you are new to SMSLib, spend some time with the two examples ReadMessages and SendMessage (located in the src/java/examples/modem folder) to find out the basics of how to read / send messages via your phone. |
Sign in to add a comment
Okay, i can confirm the steps for java comm in Linux .. But in my case (using suse), it is missing one important step, which is adding the user to the group of uucp, else it will be permission denied and SMSServer will produce error like : org.smslib.GatewayException?: Comm library exception: java.lang.reflect.InvocationTargetException?
commons-net-1.4.1.jar
download here : http://commons.apache.org/downloads/download_net.cgi
just wanna point out a small error:
to install RxTx? in Linux, the librxtxSerial.so should go to JDKDIR/jre/lib/i386/ instead of JDKDIR/jre/bin/. Otherwise, you'll get a UnsatisfiedLinkError?: no rxtxSerial in java.library.path.
The ANT building targets there is no "build-server", but "build-smsserver"
Just a litle correction.
@Aryo: Thanks, updated.
@ moonblade.wolf: Try too see this page: http://rxtx.qbang.org/wiki/index.php/Trouble_shooting#How_can_I_use_Lock_Files_with_rxtx.3F