[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: Java in Konq: Bad magic number
From:       Richard Stevens <mail () richardstevens ! de>
Date:       2001-03-03 13:45:40
[Download RAW message or body]

On Saturday 03 March 2001 12:30, Pavel Troller wrote:
> Hi!
>    I just waited for some time to see if the things get stabilized and
> becayse they don't, I'm asking for a help here...
>    I'm getting strange "Bad magic number" errors from various java appl=
ets.
> However, another applets run perfectly. A typical example of non-workin=
g
> applet is a shell-in-a-box (web shell access). You can try
> http://sinux.sinus.cz/cgi-bin/shellinabox.cgi to test (but don't hack i=
t
> too much, please :-) ) - When the applet works, You get the entry scree=
n in
> Your browser and after clicking on the Connect button, You get the logi=
n:
> prompt. This works with Netscape, perfectly. However, in konq, the only
> thing I get is the following diagnosis in the Java console:
>
> Java VM version: 1.3.0
> Java VM vendor:  Blackdown Java-Linux Team
> java.lang.ClassFormatError: netscape/security/PrivilegeManager (Bad mag=
ic
> number) at java.lang.ClassLoader.defineClass0(Native Method)
> =09at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
> =09at java.security.SecureClassLoader.defineClass(SecureClassLoader.jav=
a:111)
> =09at
> org.kde.kjas.server.KJASAppletClassLoader.findClass(KJASAppletClassLoad=
er.j
>ava:314) at
> org.kde.kjas.server.KJASAppletClassLoader.loadClass(KJASAppletClassLoad=
er.j
>ava:335) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313=
)
> =09at com.shellinabox.clipboard.Clipboard$Helper.<init>(Clipboard.java:=
82)
> =09at java.lang.Class.newInstance0(Native Method)
> =09at java.lang.Class.newInstance(Class.java:237)
> =09at
> com.shellinabox.clipboard.Clipboard.getSystemClipboard(Clipboard.java:2=
6)
> at com.shellinabox.clipboard.Clipboard.<clinit>(Clipboard.java:15) at
> com.shellinabox.ShellInABox.setClipboardType(ShellInABox.java:395) at
> com.shellinabox.dialogs.ConfigurationDialog.saveSettings(ConfigurationD=
ialo
>g.java:216) at
> com.shellinabox.dialogs.ConfigurationDialog.<init>(ConfigurationDialog.=
java
>:146) at com.shellinabox.ShellInABox.getParameters(ShellInABox.java:206)=
 at
> com.shellinabox.ShellInABox.init(ShellInABox.java:68)
> =09at org.kde.kjas.server.KJASAppletStub.initApplet(KJASAppletStub.java=
:145)
> =09at org.kde.kjas.server.KJASAppletStub$1.run(KJASAppletStub.java:98)
> =09at java.lang.Thread.run(Thread.java:484)
>
> The "netscape/security/PrivilegeManager" path comes from the shellinabo=
x
> sources, there is such a file (with .java suffix).
>    Is something broken with my Blackdown jre distro, or are such applet=
s
> just incompatible with 1.3.0 VM, or simply how to get it working ?
>
>                                            With regards, Pavel Troller


Just for information. The same happens with IBM's 1.3 JDK

Cheers,

Richard
 
>> Visit http://master.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic