Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Can't Build ReadMessages example
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Bruno Moreira  
View profile  
 More options Nov 5 2012, 6:02 pm
From: Bruno Moreira
Date: Mon, 5 Nov 2012 15:02:47 -0800 (PST)
Local: Mon, Nov 5 2012 6:02 pm
Subject: Can't Build ReadMessages example

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)
--------------------------------------------------------------------------- --------------------------------------------------------------------------- ---------------------------------


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Bruno Moreira  
View profile  
 More options Nov 6 2012, 3:33 pm
From: Bruno Moreira
Date: Tue, 6 Nov 2012 12:33:24 -0800 (PST)
Local: Tues, Nov 6 2012 3:33 pm
Subject: Re: Can't Build ReadMessages example

what do I need to include in classpath?

Segunda-feira, 5 de Novembro de 2012 23:02:47 UTC, Bruno Moreira escreveu:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Rolf Dobbelaere  
View profile  
 More options Jan 11, 7:10 am
From: Rolf Dobbelaere
Date: Fri, 11 Jan 2013 04:10:12 -0800 (PST)
Local: Fri, Jan 11 2013 7:10 am
Subject: Re: Can't Build ReadMessages example

NoSuchPortException probably means that you've used a portname that doesn't
exist.
Try this code to enumerate the available ports.
See if you're using a port that exists:
Or just test your code with all enumerated ports.

 System.out.println("De Available Ports:\n------------------");
 Enumeration<CommPortIdentifier>  comports= CommPortIdentifier.
getPortIdentifiers();
 for(Enumeration<CommPortIdentifier> enu = comports; enu.hasMoreElements
();){
 CommPortIdentifier dezePort = enu.nextElement();
 System.out.println("Name: "+dezePort.getName());
 System.out.println("PortType: "+dezePort.getPortType());
 }


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »