Preparation before installation
Download JDK1.6 or the newer version. Make sure JDK has been installed correctly and can be run under any directory. If the operating system is Linux, please confirm JDK1.6 or the newer version has been installed correctly and the PATH environment variable has been set.
File instruction
Download java-V3.4.8-trial compressed package and unzip it, there will be files and directories as shown in the figure:
Jar includes all required jar documents when running.
jdsmsserver-3.4.6jar:API used for Jindi SMS development calling
commons-net-1.4.1.jar:net API
log4j-1.2.15.jar :log API
RXTXcomm.jar : serial API
Lib directory :
Jdk accesses to the serial driver, and choose according to your operating system
Zip directory:
CommTest.java:serial connection test of GSM modem. Mainly check the serial port number and baud rate.
ReadMessages.java:read all received messages in the SIM card.
SendMessage.java:send messages.
Installation steps of JindiSMS on the Windows system
Jdsmsserver-3.4.6-trial.zip can be unzipped under any directory. Take the directory C:\ for example.
1、 Copy all files under the jar directory to jdk1.6\jre\lib\ext.
2、 Copy the file rxtxSerial.dll corresponding to WIN or LINUX under the lib directory to jdk1.6\jre\bin.
3、 Copy javax.comm.properties under the lib directory to jdk1.6\jre\lib.
4、 Set the PATH path in the environment variable and add to jdk1.6\bin.
5、 Run on the port and test the program.
Run the sending example of SMS
Run the receiving example of SMS
Installation steps of java-V3.4.6-tria on the linux system
Copy the file LibrxtxSerial.so corresponding to 32-bit or 64-bit operating system under the lib directory to jdk1.6\jre\lib\i386(32-bit) or jdk1.6\jre\lib\amd64(64-bit). The other steps refer to installation steps on the windows system.
winxp/ win2000/ 32-bit win2003/ 64-bit win2003/ 32-bit win2008/ 64-bit win2008/ win7 Redhat/ CentOS/ Ubuntu