🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #2776

Bad magic number -- HELP!!!

#2776
From: Martijn
Date: Mon, 20 Mar 2000 00:00
51 lines
2910 bytes
Hi,

I'm trying to put several class-files from one project into a jar-file and
run this from a webserver.
The project was created in JBuilder 3 and jarred with the deployment wizard.
When i run the applet in a standard browser view, the applet works. (of
course, right until a borland or swing class pops up)
Now, when i convert the html which calls the applet with the
HTMLConverter-package (standard convert) so it
runs in the Java PlugIn it always seem to generate a Bad Magic Number-error.
Could anyone please tell me why this
happens? What does this mean? Does anyone have a solution to this? I'm in a
timelimit here so please help me?

(I know it's supposed to be 0xcafebabe!)

This is the error i'm talking about:
Java(TM) Plug-in: Version 1.2.2.p001

Using JRE version 1.2.2

User home directory = C:\WINDOWS

Proxy Configuration: no proxy



JAR cache enabled.
Opening http://xxx.xxx.xxx.xxx/vision/docs/Trivia/Trivia.jar no proxy
CacheHandler file name: C:\WINDOWS\Tijdelijke
Internet-bestanden\Content.IE5\CSB9VWRV\Trivia[1].jar
Opening http://xxx.xxx.xxx.xxx/vision/docs/Trivia/Trivia/Trivia.class no
proxy

CacheHandler file name: C:\WINDOWS\Tijdelijke
Internet-bestanden\Content.IE5\IZ0TITIR\Trivia[1].class
java.lang.ClassFormatError: Trivia/Trivia (Bad magic number)
 at java.lang.ClassLoader.defineClass0(Native Method)
 at java.lang.ClassLoader.defineClass(Unknown Source)
 at java.security.SecureClassLoader.defineClass(Unknown Source)
 at sun.applet.AppletClassLoader.findClass(Unknown Source)
 at sun.plugin.security.PluginClassLoader.findClass(Unknown Source)
 at java.lang.ClassLoader.loadClass(Unknown Source)
 at sun.applet.AppletClassLoader.loadClass(Unknown Source)
 at java.lang.ClassLoader.loadClass(Unknown Source)
 at sun.applet.AppletClassLoader.loadCode(Unknown Source)
 at sun.applet.AppletPanel.createApplet(Unknown Source)
 at sun.plugin.AppletViewer.createApplet(Unknown Source)
 at sun.applet.AppletPanel.runLoader(Unknown Source)
 at sun.applet.AppletPanel.run(Unknown Source)
 at java.lang.Thread.run(Unknown Source)
Technical Details
Message-ID: <953542069.375664@newsreader1.wirehub.nl>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1089d0,2278a38ebcb27050,start
X-Google-Attributes: gid1089d0,public
From: "Martijn" <martijn@uniware.nl>
Subject: Bad magic number -- HELP!!!
Date: 2000/03/20
Message-ID: <953542069.375664@newsreader1.wirehub.nl>
X-Deja-AN: 599855070
Cache-Post-Path: newsreader1.wirehub.nl!unknown@ip195-86-48-187.dyn.wirehub.net
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600
X-Complaints-To: abuse@wirehub.net
X-Trace: thor.wirehub.nl 953542069 70234 195.86.128.18 (20 Mar 2000 08:47:49 GMT)
Organization: Wirehub! Internet, The Netherlands
X-MSMail-Priority: Normal
X-Cache: nntpcache 2.4.0b2 (see http://www.nntpcache.org/)
NNTP-Posting-Date: 20 Mar 2000 08:47:49 GMT
Newsgroups: borland.public.jbuilder.java.api