Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Java 1.2.2 plugin problem with jar archives

1 view
Skip to first unread message

mbrimble

unread,
Mar 22, 2000, 3:00:00 AM3/22/00
to
Can anyone explain what is causing this problem when I try use a jar
archive in a HTML page that invokes the java 1.2.2 plugin?

The following HTML page runs OK either locally or from and external URL;

<html>
<head>
<title>Testing jar files</title>
</head>
<body>
<hr>
<p><applet code="HelloApplet.class" align="baseline" width="300"
height="200" archive="Hello.jar"></applet></p>
<hr>
</body>
</html>

If I convert this HTML using the ‘HTMLconverter’ to invoke the Java
1.2.2 plugin it runs OK on my local client ( I see the Java 1.2.2 plugin
console appearing).
…but if try to run this from an external URL the java 1.2.2 plugin
opens and I get the following error;

Proxy Configuration: Manual Configuration
Proxy: TEST99_GL:80
Proxy Overrides: <local>
JAR cache enabled.
Opening http://205.188.247.10/markbrimble/Hello.jar proxy=TEST99_GL:80
CacheHandler file name: C:\WINNT\Profiles\markb\Temporary Internet
Files\Content.IE5\4TOJQ3MN\Hello[1].jar
Opening http://205.188.247.10/markbrimble/HelloApplet.class
proxy=TEST99_GL:80
CacheHandler file name: C:\WINNT\Profiles\markb\Temporary Internet
Files\Content.IE5\45ER09AJ\HelloApplet[1].htm
java.lang.ClassFormatError: HelloApplet (Bad magic number)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:442)
at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:101)
at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:146)
at
sun.plugin.security.PluginClassLoader.findClass(PluginClassLoader.java:198)

at java.lang.ClassLoader.loadClass(ClassLoader.java:290)
at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:112)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at sun.applet.AppletClassLoader.loadCode(AppletClassLoader.java:372)
at sun.applet.AppletPanel.createApplet(AppletPanel.java:508)
at sun.plugin.AppletViewer.createApplet(AppletViewer.java:814)
at sun.applet.AppletPanel.runLoader(AppletPanel.java:444)
at sun.applet.AppletPanel.run(AppletPanel.java:282)
at java.lang.Thread.run(Thread.java:479)


I have tried this with some other jar files and get basically the same
error with a slightly different java.lang.ClassFormatError i.e

Opening http://205.188.247.10/markbrimble/javaclasses/A.jar
proxy=TEST99_GL:80
CacheHandler file name: C:\WINNT\Profiles\markb\Temporary Internet
Files\Content.IE5\8XYZCDE3\A[1].jar
Opening http://205.188.247.10/markbrimble/javaclasses/A4.class
proxy=TEST99_GL:80

CacheHandler file name: C:\WINNT\Profiles\markb\Temporary Internet
Files\Content.IE5\49MNS9MR\A4[1].class
java.lang.ClassFormatError: A4 (Extra bytes at the end of the class
file)
…..


0 new messages