This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

xtapi

 
Felipe Walker
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • 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.
 
Stefan Wagner
Ranch Hand
Posts: 1923
Linux Postgres Database Scala
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic