Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

javax.comm in JDeveloper

Posted on 2004-09-08
6
Medium Priority
?
1,021 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 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 Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
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

Technology Partners: 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

By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
Suggested Courses

916 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