got exception java.lang.ClassNotFoundException after install Oracle Coheren
865350May 30 2011 — edited May 31 2011Hi,
I have installed Oracle COherence 3.7 and Java SDK 1.4.2 after that i am getting this exception.Pls help me,
C:\Program Files\Oracle\Coherence for .NET\examples\ContactCache.Java>"C:\Progra
m Files\Java\jdk1.6.0_11\bin\java" -server -showversion -Xms128m -Xmx128m -Dtang
osol.coherence.ttl=0 -Dtangosol.coherence.cacheconfig=contact-cache-config.xml -
cp "config;lib\custom-types.jar;C:\Program Files\Oracle\Coherence for .NET\lib\c
oherence.jar" com.tangosol.net.DefaultCacheServer
java version "1.6.0_11"
Java(TM) SE Runtime Environment (build 1.6.0_11-b03)
Java HotSpot(TM) Server VM (build 11.0-b16, mixed mode)
Exception in thread "main" java.lang.NoClassDefFoundError: com/tangosol/net/Defa
ultCacheServer
Caused by: java.lang.ClassNotFoundException: com.tangosol.net.DefaultCacheServer
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
Could not find the main class: com.tangosol.net.DefaultCacheServer. Program wil
l exit.
Press any key to continue . . .
Thanks,
Balakrishna..