I use eclipse to compile and run my programs but when I try to run them via the command line I get "Exception in thread "main" java.lang.NoClassDefFoundError:"
Now first thing's first, I did look up the problem which all pages pointed to the -classpath option not being set. I properly ran the program with
java -classpath . CipherTest -e FEATHER PlainFile.txt Encrypt.txt
but I still get the error. Anyone knows if this is some thing with eclipse?
The entire error is
Code:
C:\Documents and Settings\251070\My Documents\Java\Encryption\bin\Encryption>jav
a -classpath . CipherTest -e FEATHER PlainFile.txt Encrypt.txt
Exception in thread "main" java.lang.NoClassDefFoundError: CipherTest (wrong nam
e: Encryption/CipherTest)
at java.lang.ClassLoader.defineClass1(Native Method)
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)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)