Hi ,
I downloaded java classes available as attached file with this post
I un-zippped and saved the class files in sms folder.
I successfully compiled it using javac as below:
C:\Program Files\Java\jdk1.6.0_11\bin>javac sms\SMSClient.java sms\Sender.java sms\SerialConnection.java sms\SerialConnectionException.java sms\SerialParameters.java
then i created jar file using the command below:
C:\Program Files\Java\jdk1.6.0_11\bin>jar cf SMSClientpack.jar sms\Sender.class sms\SerialConnection$KeyHandler.class sms\SerialConnection.class sms\SerialConnectionException.class sms\SerialParameters.class sms\SMSClient.class
Then I placed that SMSClientpack.jar in
C:\Program Files\Java\jdk1.6.0_11\lib
Then i created a file with name DemoSMS.java to use above code
//DemoSms.java
import java.SMSClientpack.*;
public class DemoSms
{
public static void main(String args[])
{
SMSClient sc = new SMSClient();
sc.sendMessage("mycellnumber","Hello");
}
}
//ends here
It shows following error, please help where i am doing wrong?
C:\Program Files\Java\jdk1.6.0_11\bin>javac DemoSms.java
DemoSms.java:3: package java.SMSClientpack does not exist
import java.SMSClientpack.*;
^
DemoSms.java:10: cannot find symbol
symbol : class SMSClient
location: class DemoSms
SMSClient sc = new SMSClient();
^
DemoSms.java:10: cannot find symbol
symbol : class SMSClient
location: class DemoSms
SMSClient sc = new SMSClient();
^
3 errors
thanks,
Kashif