Results 1 to 8 of 8
  1. #1
    ellybeth is offline Member
    Join Date
    Aug 2009
    Posts
    4
    Rep Power
    0

    Unhappy Help java script error

    I oekaki a lot, or draw online with applets like shi painter and etc and they aren't loading up for me. I keep getting this error message.

    Java Plug-in 1.6.0_14
    Using JRE version 1.6.0_14-b08 Java HotSpot(TM) Client VM
    User home directory = C:\Users\Robin
    --------------------------------------…
    c: clear console window
    f: finalize objects on finalization queue
    g: garbage collect
    h: display this help message
    l: dump classloader list
    m: print memory usage
    o: trigger logging
    q: hide console
    r: reload policy configuration
    s: dump system and deployment properties
    t: dump thread list
    v: dump thread stack
    x: clear classloader cache
    0-5: set trace level to <n>
    --------------------------------------…


    java.lang.ClassFormatError: Incompatible magic value 1014199417 in class file c/ShiPainter
    at java.lang.ClassLoader.defineClass1(Nativ… Method)
    at java.lang.ClassLoader.defineClass(Unknow… Source)
    at java.security.SecureClassLoader.defineCl… Source)
    at sun.plugin2.applet.Applet2ClassLoader.fi… Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.lo… Source)
    at sun.plugin2.applet.Plugin2Manager.create… Source)
    at sun.plugin2.applet.Plugin2Manager$Applet… Source)
    at java.lang.Thread.run(Unknown Source)
    Exception: java.lang.ClassFormatError: Incompatible magic value 1014199417 in class file c/ShiPainter

    If I could PLEASE have a step by step process on how to fix it.

  2. #2
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

    Default

    ClassFormatError, can you show your code here? This is kind of a linkage error, JVM tries to link a class file, but recognized it's not in the correct format.

  3. #3
    ellybeth is offline Member
    Join Date
    Aug 2009
    Posts
    4
    Rep Power
    0

    Default

    Quote Originally Posted by Eranga View Post
    ClassFormatError, can you show your code here? This is kind of a linkage error, JVM tries to link a class file, but recognized it's not in the correct format.

    How would I do that? Whenever I get the error it asks me if I'd like to click for details. I did click but that's all that comes up.

  4. #4
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

  5. #5
    ellybeth is offline Member
    Join Date
    Aug 2009
    Posts
    4
    Rep Power
    0

    Default

    Quote Originally Posted by Eranga View Post
    Did you run a jar file? Or how you get this error? Is this your application?
    Well I was opening shi painter which is an online drawing application. It's meant for sites like Oekaki central and other such sites, and when I tried to draw the application that I was using needs java to run. But before java finishes loading it tells me there's an error and to click for details which I do but then it simple gives me that and nothing else.

  6. #6
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

    Default

    Okay, seems to me that application have an issue, or may be the JRE version is not compatible. Is that application mentioned about any requirements to run it? Because the version you've in your PC is not the latest.

    Check that in your C drive is there any class file is created.

  7. #7
    ellybeth is offline Member
    Join Date
    Aug 2009
    Posts
    4
    Rep Power
    0

    Default

    ugh I'm sorry. I have no idea what you just said, I know that shi painter needs javascript to run and I have java and I just got into my C: drive but I have no idea what to look for.

  8. #8
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

    Default

    Okay, first thing I've say here is Java and JavaScript are completely different languages, or different technologies. But seems to me your application needs Java, not JS. Because that error message you post here from the Java console. You copied them from a pop-up dialog/window when the application is executed, isn't it?

    Can you send the link you've done all those things?

Similar Threads

  1. run a matlab script from java
    By npoorni in forum Advanced Java
    Replies: 5
    Last Post: 02-11-2010, 03:32 PM
  2. java script
    By satti in forum Web Frameworks
    Replies: 0
    Last Post: 06-09-2009, 08:53 AM
  3. 'Permission denied' java script error
    By java08 in forum JavaServer Pages (JSP) and JSTL
    Replies: 0
    Last Post: 04-13-2009, 08:19 AM
  4. run perl script from java
    By maheshmhs in forum New To Java
    Replies: 0
    Last Post: 12-19-2008, 12:40 PM
  5. Replies: 4
    Last Post: 07-31-2008, 01:43 PM

Tags for this Thread

Posting Permissions

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