Solved

SerialPortEventListener error 302 Wrong Class

Posted on 2001-07-25
8
295 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
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!

 

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

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

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

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…
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…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

734 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