This is the error thats troubling me :
C:\Documents and Settings\xxxx\Desktop\Java Files New>javac MSWord.java
C:\Documents and Settings\xxxx\Desktop\Java Files New>java MSWord
Exception in thread "main" java.lang.NoClassDefFoundError: MSWord (wrong name: o
rg/jinterop/dcom/test/MSWord)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(Unknown Source)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$000(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
Could not find the main class: MSWord. Program will exit.
Environment Variables:
JAVA_HOME C:\glassfishv3\jdk\
CLASSPATH .;C:\Program Files\QuickTime\QTSystem\QTJava.zip;C:\Documents and Settings\xxxx\Desktop\j-Interop\lib\j-interop.jar;C:\Documents and Settings\xxxx\Desktop\j-Interop\lib\jcifs-1.2.19.jar;C:\Documents and Settings\xxxx\Desktop\j-Interop\lib\j-interopdeps.jar;C:\Documents and Settings\xxxx\Desktop\j-Interop\lib\progIdVsClsidDB.properties;C:\glassfishv3\jdk\bin;C:\Documents and Settings\xxxx\Desktop\Java Files New;C:\glassfishv3\jdk\lib;
Path %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\QuickTime\QTSystem\;C:\gwt-2.1.0;%ANT_HOME%\bin;C:\Program Files\Java\jre6\bin;C:\glassfishv3\jdk\bin;
Details:
Installed Java(TM) 6 update 22
Java(TM) 6 update 5
C:\Program Files\Java\jre1.6.0_05
C:\Program Files\Java\jre6.0
C:\glassfishv3\jdk
Tools.jar is present in all the lib and bin folders of the above locations.
Tried all these:
http://www.tech-recipes.com/rx/826/java-exception-in-thread-main-javalangnoclassdeffounderror/[
^]
http://www.jguru.com/faq/view.jsp?EID=455768&page=1[
^]
Nothing has resolved my issue, i am new to java and very confused on whats happening!! I knew the error is with classpath but i have tried all possible combinations.
Any suggestions or advices!! Please let me know if you need any more info!!