I've created a project based on ReadMessages example, in NetBeans 7.0.1. in
Windows 7 32Bit
I can run the project without problems, and(for those who don't know,
Netbeans automatically creates an executable jar file inside dist folder.
The problem is that when I try to run the jar file using java -jar
readmessages.jar, it always say that the COM port wasn't found.
What am I doing wrong?
--------------------------------------------------------------------------- --------------------------------------------------------------------------- ---------------------------------
Example: Read messages from a serial gsm modem.
SMSLib: A Java API library for sending and receiving SMS via a GSM modem or
othe
r supported gateways.
This software is distributed under the terms of the Apache v2.0 License.
Web Site: http://smslib.org
Version: 3.5.2
log4j:WARN No appenders could be found for logger (smslib).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for
more in
fo.
org.smslib.GatewayException: Comm library exception:
java.lang.RuntimeException:
javax.comm.NoSuchPortException
at
org.smslib.modem.SerialModemDriver.connectPort(SerialModemDriver.java
:102)
at org.smslib.modem.AModemDriver.connect(AModemDriver.java:114)
at org.smslib.modem.ModemGateway.startGateway(ModemGateway.java:189)
at org.smslib.Service$1Starter.run(Service.java:276)
--------------------------------------------------------------------------- --------------------------------------------------------------------------- ---------------------------------