This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
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


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Importing a new package.... again" Watch "Importing a new package.... again" New topic
Author

Importing a new package.... again

Stephen Hanley
Greenhorn

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 javax.comm.properties 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.

Layne


Java API Documentation
The Java Tutorial
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Importing a new package.... again