0

I want to write application to send sms via COM port. Currently I have Windows, but then this application should works on Linux too. I found javax.comm library here: http://www.oracle.com/technetwork/java/index-jsp-141752.html but I don't know from where I can download jar file ? Then I found RXTX library but I don't if it is good ?

Thanks

Robert
  • 2,571
  • 10
  • 63
  • 95

3 Answers3

0

I'd suggest you to use SMSJ. It has several implementations. One is "local": it wraps RXTX library providing higher level well designed API. Others use well-known web services that send SMSs.

AlexR
  • 114,158
  • 16
  • 130
  • 208
  • I try using this library, but doesn't work. I try to send sms via gsm modem, not gateway. When I run this line of code:SmsSender smsSender = SmsSender.getGsmSender("COM5"); I got error: Exception in thread "main" java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory at org.marre.sms.transport.gsm.SerialComm.(SerialComm.java:58) at java.lang.Class.forName0(Native Method) I assume I have to add any library to loging – Robert Jan 11 '12 at 19:11
  • I added the comm.jar file to my project classpath – Zuko Oct 08 '15 at 14:34
0

i have used rxtx on a small project on windows. it worked fine. it also claims to work on linux.

Ray Tayek
  • 9,841
  • 8
  • 50
  • 90
0

http://smslib.org/ is a relatively mature Java sms sending/receiving library that makes use of RxTx and SUN JavaComm.

Matt Aldridge
  • 2,037
  • 16
  • 21