Results 1 to 3 of 3
  1. #1
    willemjav is offline Senior Member
    Join Date
    Dec 2007
    Location
    Spain
    Posts
    1,062
    Rep Power
    8

    Default Incompatible magic value 1008821359

    Dear Java friends
    The image slideshow applet works on a web browser (hardwired was wright one should use URL for file download for applets) but once uploaded at the server I get the following message:

    java.lang.ClassFormatError: Incompatible magic value 1008821359 in class file Imgslides
    at java.lang.ClassLoadeethod)
    at java.lang.ClassLoader.defineClass(ClassLoader.java :620)
    at java.security.SecureClassLoader.defineClass(Ser.de fineClass1(Native McureClassLoader.java:124)
    at sun.applet.AppletClassLoader.findClass(AppletClass Loader.java:163)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:3 06)
    at sun.applet.AppletClassLoader.loadClass(AppletClass Loader.java:119)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:2 51)
    at sun.applet.AppletClassLoader.loadCode(AppletClassL oader.java:591)
    at sun.applet.AppletPanel.createApplet(AppletPanel.ja va:723)
    at sun.plugin.AppletViewer.createApplet(AppletViewer. java:1863)
    at sun.applet.AppletPanel.runLoader(AppletPanel.java: 652)
    at sun.applet.AppletPanel.run(AppletPanel.java:326)
    at java.lang.Thread.run(Thread.java:613)

    The applet consists of one single file called Imgslides.class and the netbeans 5.5.1 ide generates four more according some inner classes (called Imgslides$1.class, Imgslides$EventHandler.class, Imgslides$ImageDisplay.class, Imgslides$Img.class). The applet downloads stuff from a folder (called Imagestore) that sits on
    the base folder of my web page. The htm tag of the applet is the following:
    <applet align="left" code="Imgslides.class" width="350" height="390"></applet> (I uploaded all mentioned classes)
    (All this works fine when viewing at several of my macbook web browsers) What is missing here???

    saludos willemjav

  2. #2
    roots's Avatar
    roots is offline Moderator
    Join Date
    Jan 2008
    Location
    Dallas
    Posts
    293
    Rep Power
    7

    Default

    which java version are you using ?
    dont worry newbie, we got you covered.

  3. #3
    willemjav is offline Senior Member
    Join Date
    Dec 2007
    Location
    Spain
    Posts
    1,062
    Rep Power
    8

    Default

    I do not know what
    JVM runs on the server machine that
    generates the java.lang.ClassFormatError: Incompatible magic value 1008821359 in class file Imgslides
    on my machine I found the following:
    java 1.5.0_13 / netbeans 5.5.1
    OS X (macbook) 10.4.11
    Java 1.3.1 Plugin Settings
    Java 1.4.2 Plugin Settings
    J2SE 5.0
    Java SE 6
    Java SE 6 (for J2SE 5.0)
    Input Method Hotkey

    saludos willemjav

Similar Threads

  1. Replies: 6
    Last Post: 10-08-2008, 08:09 AM
  2. 'Incompatible operand' fault
    By fatnic388 in forum New To Java
    Replies: 3
    Last Post: 12-01-2007, 07:05 PM
  3. problem with scanner class:incompatible types
    By fred in forum New To Java
    Replies: 1
    Last Post: 07-20-2007, 07:02 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •