wood burning stoves 2.0*
The moose likes Java in General and the fly likes jar classpth  settings Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "jar classpth  settings" Watch "jar classpth  settings" New topic
Author

jar classpth settings

m asif
Greenhorn

Joined: Apr 01, 2003
Posts: 6
I set the classpath of jtapi12 api but still getting java.lang.NoClassDefFoundError: javax.telephony.ProviderObserver exception.
following looks perfect to me:
C:\h323\j323-2001-11-27\j323\bin>set CLASSPATH=c:\h323\jtapi12-class.zip;c:\h32
3\j323-2001-11-27\j323\lib\j323.jar;c:\h323\j323-2001-11-27\j323\lib\cphone.jar
------------------------------
C:\h323\j323-2001-11-27\j323\bin>"c:\j2sdk1.4.0\bin\java" -Dh323.endpoint.timer
.factor=3 com.ibm.ct.cphone.Main -trace 1 -sdfile demo.sd -locaddr "<grm@zurich
.ibm.com>"
Exception in thread "main" java.lang.NoClassDefFoundError: javax/telephony/Provi
derObserver
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:509)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:12
3)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:246)
at java.net.URLClassLoader.access$100(URLClassLoader.java:54)
at java.net.URLClassLoader$1.run(URLClassLoader.java:193)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:186)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265)
at java.lang.ClassLoader.loadClass(ClassLoader.java:262)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:322)
at com.ibm.ct.cphone.Main.main(Main.java:159)
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: jar classpth settings