Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 299
  • Last Modified:

SerialPortEventListener error 302 Wrong Class

I am trying to implement SerialPortEventListener.  I downloaded the latest SUN comm api,
when i add the comm.jar file to my 'required libraries' in JBuilder 4 i get an error 302, wrong class.  

what is a wrong class? i tried unjaring the jar file so i could get to the SerialPortEventListener.class directly and I have the same problem.
0
JohnSpooner
Asked:
JohnSpooner
  • 5
  • 2
1 Solution
 
JDayCommented:
It is very important that you have commapi in the correct place.

Is your project in the same directory as your jdk and where is your comapi located?

In order for the Java communications API to find ports the file javax.comm.properties must be in the correct place. The preferred location is in <jdk>/lib. See the installation instructions for alternate locations
and further information.
0
 
JohnSpoonerAuthor Commented:

this answer addresses a different issue, not the compile issue.

i tried import javax.com.SerialPortEventListenerrather than
com.* and now i do not have this error.

if it works or not, this is a different issue i will see
0
 
amp072397Commented:
JohnSpooner:

Please provide feedback in your open questions.

thanks!
amp
community support moderator
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
JohnSpoonerAuthor Commented:
The comments did not help, the comenter did not know about embedded application for this.  I figured this one out on my own, the answer was not correct.  My comment shows this.

I didn't want to be negative to someone who has provided a comment.
0
 
JohnSpoonerAuthor Commented:
The comments did not help, the comenter did not know about embedded application for this.  I figured this one out on my own, the answer was not correct.  My comment shows this.

I didn't want to be negative to someone who has provided a comment.
0
 
amp072397Commented:
If you give us the answer here, JohnSpooner, I can refund your points.

thanks!
amp
community support moderator
0
 
JohnSpoonerAuthor Commented:
the problem was not related to the javax library, but to a thrird part library provided for the embedded application.

the follwoing comment was meant to explain this
"this answer addresses a different issue, not the compile issue.

i tried import javax.com.SerialPortEventListenerrather than
com.* and now i do not have this error."

i don't really need the points back.
0
 
JohnSpoonerAuthor Commented:
see comment
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 5
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now