Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / First Aid / March 2006

Tip: Looking for answers? Try searching our database.

Where do you put the javax pacakages?

Thread view: 
Richard Perreault - 31 Mar 2006 01:54 GMT
I like to know where do you put the javax packages. such as telephony. I try
to compile and I always get the error that it can not find the packages. As
for example;

import javax.telephony.*;
import javax.telephony.events.*;
import javax.telephony.callcontrol.*;
import javax.telephony.callcontrol.events.*;
/*
* The MyCallCtlOutCallObserver class implements the CallControlCallObserver
* interface and receives all events associated with the Call.
*/

I tried placing it in the jre in the lib ext and nothing works.

Thank you in advance.
fuzzybr80 - 31 Mar 2006 03:44 GMT
You can add the jar/zip libraries for these packages to the environment
variable CLASSPATH. note that you have to add the actual jar/zip files,
not just the directory they are in.

Alternatively, you can pass them to the javac compiler on the command
line with the -classpath option. You will need to do the same to java
when running the application.

More from : http://mindprod.com/jgloss/classpath.html

If you use a build tool like ant, or IDE like Eclipse to manage,
compile and run your project, they have their own
interface/configurations for adding java libraries.

> I like to know where do you put the javax packages. such as telephony. I try
> to compile and I always get the error that it can not find the packages. As
[quoted text clipped - 12 lines]
>
> Thank you in advance.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.