I'm completely new to Java but I was working through a tutorial.
Firstly, I created four class files... I then used command prompt to drill down to the folder I had saved the class files in. I then typed the command: java checklinks
It came back with this error:
C:\Documents and Settings\rcooper\My Documents\_FWIL\_linkchecker>java checklink
s
Exception in thread "main" java.lang.ClassFormatError: checklinks (Bad magic num
ber)
at java.lang.ClassLoader.defineClass0(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$100(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)
Does anyone know why this is happening?
Richard
Firstly, I created four class files... I then used command prompt to drill down to the folder I had saved the class files in. I then typed the command: java checklinks
It came back with this error:
C:\Documents and Settings\rcooper\My Documents\_FWIL\_linkchecker>java checklink
s
Exception in thread "main" java.lang.ClassFormatError: checklinks (Bad magic num
ber)
at java.lang.ClassLoader.defineClass0(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$100(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)
Does anyone know why this is happening?
Richard