8

I want to write some programs using Java comm api. I am not able to find site/page from which I can download this API. Can anyone please tell me where can I get this API?

Basically I want to send SMS to mobile from PC. Mobile will connect to PC through USB cable. I would also like to know what are the possible ways to send SMS to mobile? (I am looking for option which wont incur me money)

Thanks in advance !


EDIT 1

I am not allowed to use third party APIs. It seems that Java comm API is dead now. So is there any other way to send messages to mobile from pc?


MPelletier
  • 16,256
  • 15
  • 86
  • 137
Shekhar
  • 11,438
  • 36
  • 130
  • 186

5 Answers5

5

Download javax.comm api library from here : http://www.java2s.com/Code/Jar/c/Downloadcomm20jar.htm

In my opinion, the best alternative to javax.comm is rxtx.


Sending SMS over Serial Connection

For sending sms over serial connection you have to use AT command.

Here are some examples on other languages (but the concept is same).

http://linux-101.org/script/python-code-sending-sms-messages-usb-connected-mobile-phone http://www.developershome.com/sms/howToSendSMSFromPC.asp http://www.codeproject.com/KB/vb/AT_commands.aspx

I'd suggest you to test the commands on app like hyperterminal( alternative for win 7 : http://helpdeskgeek.com/windows-7/windows-7-hyperterminal/) first.

gtiwari333
  • 24,554
  • 15
  • 75
  • 102
3

If this is still relevant for you (maybe others, though);

Serialio.com are the true experts on serial communication. They have an excellent package (SerialPort) which I have used since 1997, and never given me any problems, and since then they have added support for Java Comm API as well as an endless number of platforms.

Niclas Hedhman
  • 584
  • 4
  • 14
3

I would recommend RXTX. It doesn't use the javax.comm package, but it follows the same API, with a little extra.

Jeffrey
  • 44,417
  • 8
  • 90
  • 141
  • I am not allowed to use third party APIs. It seems that Java comm API is dead now. So is there any other way to send messages to mobile from pc? – Shekhar Dec 02 '11 at 02:40
  • @Shekhar Why can't you use third party libraries? RXTX 2.0 uses the `javax.comm` package. It's on the same download page above. Other than that, you would have to make your own library to do this. – Jeffrey Dec 02 '11 at 02:45
  • well, decision of not using third party api came from management. Cant argue with them... – Shekhar Dec 02 '11 at 02:47
2

It might be an older version, but MIT hosts a copy of javaxcomm.zip here.

Beau Grantham
  • 3,435
  • 5
  • 33
  • 43
0

Try this source at oracle.com:

Misc. Java SE Tools and Libraries Downloads

DmitrySandalov
  • 3,879
  • 3
  • 23
  • 17
  • 1
    Oracle only supports a very narrow line of platforms. No Windows, e.g. (What happened to "write once, run everywhere", hm?) – Per Lindberg Sep 28 '16 at 08:28