Help coderanch get a
new server
by contributing to the fundraiser
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

xtapi

 
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 1923
Scala Postgres Database Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Felipe Walker
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 41
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I meant the folder on my desktop is called java_telephony not java_api.
I run the command java Outcall from the simple directory
 
A wop bop a lu bop a womp bam boom! Tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/t/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic