Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1022
  • Last Modified:

javax.comm in JDeveloper

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
kender_a
Asked:
kender_a
  • 3
  • 2
1 Solution
 
objectsCommented:
so it appears you need to add the jars to your project using project settings.
0
 
jLasithaCommented:
Have you located win32com.dll and javax.com.properties file correctly...?
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
kender_aAuthor Commented:
Objects,

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

Thanks,
Nick
0
 
objectsCommented:
Have you found your project settings?
0
 
kender_aAuthor Commented:
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.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now