Solved

javax.comm in JDeveloper

Posted on 2004-09-08
6
1,017 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 250 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
[Live Webinar] The Cloud Skills Gap

As Cloud technologies come of age, business leaders grapple with the impact it has on their team's skills and the gap associated with the use of a cloud platform.

Join experts from 451 Research and Concerto Cloud Services on July 27th where we will examine fact and fiction.

 
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

Ready to get started with anonymous questions?

It's easy! Check out this step-by-step guide for asking an anonymous question on Experts Exchange.

Question has a verified solution.

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

Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
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…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

624 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