xtapi

I am trying to run Outcall.java I downloaded with xtapi and I keep getting the error

Exception in thread "main" java.lang.NoClassDefFoundError: javax/telephony/media /MediaTerminalConnection at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:620) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:12 4) at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) at java.net.URLClassLoader.access$100(URLClassLoader.java:56) at java.net.URLClassLoader$1.run(URLClassLoader.java:195) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) at net.xtapi.XJtapiPeer.getProvider(XJtapiPeer.java:110) at Outcall.main(Outcall.java:23)

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.

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

posted Aug 04, 2005 21:25:00

0

I meant the folder on my desktop is called java_telephony not java_api. I run the command java Outcall from the simple directory