?
Solved

javax.comm in JDeveloper

Posted on 2004-09-08
6
Medium Priority
?
1,020 Views
Last Modified: 2011-10-03
Colleagues,

I'm using a java application to read the data from the instrument via COM port.  I was using Sun JavaOne until my client insisted on to switch to JDeveloper, since they are using it.  Now trhe code doesn't compile, saying

      Error(3,1): cannot access directory javax\comm; verify that directory is reachable from classpath and/or sourcepath

when I do

      import javax.comm.*;

The 2 identical comm.jar files sit here:
      
      C:\j2sdk1.4.2_04\jre\lib\ext
      C:\j2sdk1.4.2_04\lib

The CLASSPATH is
      
      C:\j2sdk1.4.2_04\lib\comm.jar; E:\n\kalaco\comm\app

This arrangement was working fine with JavaOne.  How can I fix the situation in JDeveloper?

Thank you,
Kender
0
Comment
Question by:kender_a
[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
  • 3
  • 2
6 Comments
 
LVL 92

Accepted Solution

by:
objects earned 1000 total points
ID: 12012495
0
 
LVL 92

Expert Comment

by:objects
ID: 12012551
so it appears you need to add the jars to your project using project settings.
0
 
LVL 1

Expert Comment

by:jLasitha
ID: 12012822
Have you located win32com.dll and javax.com.properties file correctly...?
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
LVL 1

Author Comment

by:kender_a
ID: 12018520
Objects,

How do I add a .jar to the project? Could you walk me through?

Thanks,
Nick
0
 
LVL 92

Expert Comment

by:objects
ID: 12022377
Have you found your project settings?
0
 
LVL 1

Author Comment

by:kender_a
ID: 12022399
There isa menu item Tools -> Project properties...
Is this the place you are talking about?

Nick
0

Featured Post

Industry Leaders: 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 Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
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 about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
Suggested Courses

719 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