Results 1 to 3 of 3
  1. #1
    dudejonne is offline Member
    Join Date
    Oct 2009
    Posts
    56
    Rep Power
    0

    Default Jar files and a magic error.

    I have a applet that works, but when I try to run it in a html file with this code:
    <APPLET CODE="MyApplet.class" WIDTH=100 HEIGHT=100>

    It gives a very weird error:
    java.lang.ClassFormatError: Incompatible magic value 1013478509 in class file

    Searching about Incompatible magic value at Google tells me a lot of stuff about jar files. I have no idea what jar files are?

    So what are jar files. And anyone has got an idea how to fix this?

  2. #2
    r035198x is offline Senior Member
    Join Date
    Aug 2009
    Posts
    2,388
    Rep Power
    8

  3. #3
    dudejonne is offline Member
    Join Date
    Oct 2009
    Posts
    56
    Rep Power
    0

    Default

    After re/installing Java and JDK I don´t get the error anymore, but this error:
    java.lang.reflect.InvocationTargetException
    at com.sun.deploy.util.DeployAWTUtil.invokeAndWait(Un known Source)
    at sun.plugin2.applet.Plugin2Manager.runOnEDT(Unknown Source)
    at sun.plugin2.applet.Plugin2Manager.createApplet(Unk nown Source)
    at sun.plugin2.applet.Plugin2Manager$AppletExecutionR unnable.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    Caused by: java.lang.ClassCastException: ImageGrabber cannot be cast to java.applet.Applet
    at sun.plugin2.applet.Plugin2Manager$12.run(Unknown Source)
    at java.awt.event.InvocationEvent.dispatch(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForFilter s(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForFilter(U nknown Source)
    at java.awt.EventDispatchThread.pumpEventsForHierarch y(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.run(Unknown Source)
    Exception: java.lang.reflect.InvocationTargetException
    java.lang.NullPointerException
    at sun.plugin2.applet.Plugin2Manager.findAppletJDKLev el(Unknown Source)
    at sun.plugin2.applet.Plugin2Manager.createApplet(Unk nown Source)
    at sun.plugin2.applet.Plugin2Manager$AppletExecutionR unnable.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    Exception: java.lang.NullPointerException


    Men.. Why aren't those errors helpful..

Similar Threads

  1. unzipping core files failed error 25099
    By truckerej in forum New To Java
    Replies: 17
    Last Post: 08-20-2009, 05:25 AM
  2. [SOLVED] Magic Points Game
    By jimmy7 in forum Java Applets
    Replies: 6
    Last Post: 04-27-2009, 12:40 AM
  3. Problem using buttons to creat a magic square game
    By goldman in forum New To Java
    Replies: 5
    Last Post: 05-05-2008, 05:04 AM
  4. Incompatible magic value 1008821359
    By willemjav in forum Java Applets
    Replies: 2
    Last Post: 03-21-2008, 10:41 AM
  5. error in Java files
    By ai_2007 in forum Advanced Java
    Replies: 1
    Last Post: 07-31-2007, 01:14 PM

Posting Permissions

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