Solved

javax.comm in JDeveloper

Posted on 2004-09-08
6
1,013 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
  • 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
Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

 
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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
even odd program using while loop 3 60
hibernate insert example 13 34
hibernate example issues from command prompt 10 50
Facing this issue for maven proxy setting 2 21
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…
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.
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
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…

820 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