This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "xtapi" Watch "xtapi" New topic
Author

xtapi

Felipe Walker
Ranch Hand

Joined: Sep 23, 2003
Posts: 41
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.
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.
Then:

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


http://home.arcor.de/hirnstrom/bewerbung
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
sktop\java_telephony\jars\comm.jar

echo %java_home%
C:\Program Files\Java\jdk1.5.0_04\bin;C:\java_api\javamail-1.3.3ea\mail.jar;C:\j
ava_api\jaf-1.0.2\activation.jar;c:\java_api\javax

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: http://aspose.com/file-tools
 
subject: xtapi
 
Similar Threads
why is this happening REALLY URGENT
Tomcat Error
Sealing Violation
Transmogrify
java command error