1. SerialConnection.java - This file is used to connect to your COM port from your java program
2. SerialConnectionException.java -This file is for handling serial connection exceptions in your Java program.
3. SerialParameters.java - This program is used to set your COM port properties for connecting to your com port from your java program
4. Sender.java - This is the program that implements runnable and sends SMS using the serial connection
5. SMSClient.java - This java class is the main class that can be instantiated in your own java program and called to send SMS. This program in turn will use all the above four files internally to send out your SMS.
2. SerialConnectionException.java -This file is for handling serial connection exceptions in your Java program.
3. SerialParameters.java - This program is used to set your COM port properties for connecting to your com port from your java program
4. Sender.java - This is the program that implements runnable and sends SMS using the serial connection
5. SMSClient.java - This java class is the main class that can be instantiated in your own java program and called to send SMS. This program in turn will use all the above four files internally to send out your SMS.
Download send SMS program files
In the Sender.java file you have to modify two lines, find the following code line and replace it by your message center number according to your service provider. According to my service provider it's +9477000003
After that you have to find out your COM port which is used to connect your GSM modem and replace this code by your COM Port number. According to my computer it's COM5.
After adding these files, you can send messages using an object like this
How to send SMS using Java ( Part I )
How to send SMS using Java ( Part II )