my dog learned polymorphism
The moose likes Java in General and the fly likes xtapi Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "xtapi" Watch "xtapi" New topic


Felipe Walker
Ranch Hand

Joined: Sep 23, 2003
Posts: 41
I am trying to run I downloaded with xtapi and I keep getting the error

Exception in thread "main" java.lang.NoClassDefFoundError: javax/telephony/media
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(
at Method)
at java.lang.ClassLoader.loadClass(
at sun.misc.Launcher$AppClassLoader.loadClass(
at java.lang.ClassLoader.loadClass(
at java.lang.ClassLoader.loadClassInternal(
at net.xtapi.XJtapiPeer.getProvider(
at Outcall.main(

I put the xtapi.jar, comm.jar and mstapisp.jar in the class path, I can compile but when I try to run the app, I get the above error.
Stefan Wagner
Ranch Hand

Joined: Jun 02, 2003
Posts: 1923

Show the commandline you run.
Tell us the directory, from where you run it.
Issue the command

and show us the output.

You don't run Outcall.class from a jar itself?
Then show us the manifest file.
Felipe Walker
Ranch Hand

Joined: Sep 23, 2003
Posts: 41
echo %classpath%
;C:\Program Files\Java\jdk1.5.0_04\lib;C:\Documents and Settings\Felipe Walker\D
esktop\java_telephony\jars\xtapi.jar;C:\Documents and Settings\Felipe Walker\Des
ktop\java_telephony\jars\mstapisp.jar;C:\Documents and Settings\Felipe Walker\De

echo %java_home%
C:\Program Files\Java\jdk1.5.0_04\bin;C:\java_api\javamail-1.3.3ea\mail.jar;C:\j

I have a folder on my desktop java_api. In that folder I have a folder that holds the jar files
comm.jar, xtapi.jar and mstapisp.jar. I then have another folder in the java_api folder called
simple that has the outcall and myoutcallobserver java and class files
Felipe Walker
Ranch Hand

Joined: Sep 23, 2003
Posts: 41
I meant the folder on my desktop is called java_telephony not java_api.
I run the command java Outcall from the simple directory
I agree. Here's the link:
subject: xtapi
It's not a secret anymore!