Hello, I had downloaded the souce code for the Transmogrify and try to run the Main class in my computer. it have been compiled but when I try to run it, the computer show me following error. Could anybody please help me to solve this problem? Exception in thread "main" java.lang.NoClassDefFoundError: Main (wrong name: /sourceforge/transmogrify/symtab/Main) at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:502) at java.security.SecureClassLoader.defineClass(SecureClassLoader.jav 3) at java.net.URLClassLoader.defineClass(URLClassLoader.java:250) 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:299) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265) at java.lang.ClassLoader.loadClass(ClassLoader.java:255) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
Lasse Koskela
author
Sheriff
Joined: Jan 23, 2002
Posts: 11962
5
posted
0
The NoClassDefFoundError means that the JVM didn't find your class in the classpath. You need to include the Transmogrify classes to your runtime classpath.
Please don't post the same question in multiple forums. Since this is really more of a genral Java question than an OO question, I'm closing this thread and leaving open the one in Java in General - Intermediate. Please follow up there. [ January 24, 2004: Message edited by: Jim Yingst ]
"I'm not back." - Bill Harding, Twister
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.