Solved

SerialPortEventListener error 302 Wrong Class

Posted on 2001-07-25
8
289 Views
Last Modified: 2013-11-23
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
Comment
Question by:JohnSpooner
  • 5
  • 2
8 Comments
 

Accepted Solution

by:
JDay earned 100 total points
ID: 6322591
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
 

Author Comment

by:JohnSpooner
ID: 6325355

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
 

Expert Comment

by:amp072397
ID: 6791937
JohnSpooner:

Please provide feedback in your open questions.

thanks!
amp
community support moderator
0
 

Author Comment

by:JohnSpooner
ID: 6792256
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
Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 

Author Comment

by:JohnSpooner
ID: 6792257
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
 

Expert Comment

by:amp072397
ID: 6792273
If you give us the answer here, JohnSpooner, I can refund your points.

thanks!
amp
community support moderator
0
 

Author Comment

by:JohnSpooner
ID: 6808814
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
 

Author Comment

by:JohnSpooner
ID: 6808815
see comment
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now