Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes Java in General and the fly likes Importing a new package.... again Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Importing a new package.... again" Watch "Importing a new package.... again" New topic

Importing a new package.... again

Stephen Hanley

Joined: Apr 17, 2005
Posts: 18
I had this problem already this month with a web application. Closest I've come to crying in many many years.

I am attempting to import the javax.comm package so that I can access a Nokia mobile phone over the parallel port.

I have followed all of the installation instructions.

I have two SDKs and JREs. One is in my J2EE environment and the other is used by NetBeans and is contained in my program files folder. For each of the SDK and JRE folders I did the following:
1)put DLL in bin folder
2)put JAR in lib folder
3)put file in the lib folder

Is there something I missing here? the package is not available in NetBeans.
Layne Lund
Ranch Hand

Joined: Dec 06, 2001
Posts: 3061
What error do you get? Which version of NetBeans are you using? My guess is that you need to configure NetBeans' internal classpath. It tends to ignore the system CLASSPATH variable. However, I can't be any more specific without the answers to my questions.


Java API Documentation
The Java Tutorial
I agree. Here's the link:
subject: Importing a new package.... again
jQuery in Action, 3rd edition