🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #12231

Re: bad magic number ???

#12231
From: Ken Chan
Date: Mon, 01 Feb 1999 00:00
13 lines
1027 bytes
Jean-Christian =?iso-8859-1?Q?Gagn=E9?= wrote:
> ClassFormatException "bad magic number"...

The magic number in a Java class file is the first four bytes: 0xCAFEBABE 
(cute, huh?). One of the first things a class loader would do is check 
those bytes. You could check them yourself with a hex editor, but since 
it ran OK in JBuilder, that's probably not the problem, unless you copied 
the file from your JBuilder development machine to your web server using 
FTP in ASCII (instead of binary) mode; that would mangle the file.

-- 
//Ken@Inprise
<Please follow-up to newsgroup; do not reply to email>
Technical Details
Message-ID: <MPG.111fefc750e99442989baf@forums>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <36B57E3A.26267532@vtx.ch>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,4c150ea1a305ad1
X-Google-Attributes: gid111d45,public
From: supportinfo@inprise.com (Ken Chan)
Subject: Re: bad magic number ???
Date: 1999/02/01
Message-ID: <MPG.111fefc750e99442989baf@forums>
X-Deja-AN: 439586888
References: <36B57E3A.26267532@vtx.ch>
Organization: Inprise Corporation
Newsgroups: borland.public.jbuilder.java.swing