Solved

SerialPortEventListener error 302 Wrong Class

Posted on 2001-07-25
8
291 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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 

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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Where to store the queries for modification of table 4 63
oracle 11g 23 84
expectj telnet failing 5 36
How to determine if a string is a valid SHA value 7 34
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
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 …
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:

803 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