bad magic number means that the first 4 bytes of the delivered class file did
not match 0xcafebabe. check that whatever server is handling the URL (i.e.
a webserver) is sending it as binary, and that it isn't returning something
like this: "<html><body><h1>404: file not found</h1></body></html>" ;)
At 15:37 10/27/99 -0400, Paul Grepps wrote:
>Hello,
>
>I'm trying the WeatherServer RMI example out of the "Just Java 2" book
>and I'm getting the following exception.
>I am using Blackdown's JDK1.2 and the jre under that distribution under
>RedHat 6.1.
>
>Exception in thread "main" java.lang.ClassFormatError: weather/RMIdemo
>(Bad magic number)
> at java.lang.ClassLoader.defineClass0(Native Method)
> at java.lang.ClassLoader.defineClass(Compiled Code)
> at java.security.SecureClassLoader.defineClass(Compiled Code)
> at java.net.URLClassLoader.defineClass(Compiled Code)
> at java.net.URLClassLoader.access$1(Compiled Code)
> at java.net.URLClassLoader$1.run(Compiled Code)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(Compiled Code)
> at java.lang.ClassLoader.loadClass(Compiled Code)
> at sun.misc.Launcher$AppClassLoader.loadClass(Compiled Code)
> at java.lang.ClassLoader.loadClass(Compiled Code)
>
>
>Attachment Converted: "g:\mail.home.net\attach\paul.vcf"
just what are these things anyway?
cabbey at home dot net <*> http://members.home.net/cabbey
I want a binary interface to the brain!
Today's opto-mechanical digital interfaces are just too slow!
----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]