Solved

SerialPortEventListener error 302 Wrong Class

Posted on 2001-07-25
8
296 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

 

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
 

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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
Suggested Courses

617 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