The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Java Webclient problem

Discussion in 'General Discussion' started by maximuso, Nov 17, 2012.

  1. maximuso

    maximuso Registered

    Joined:
    Nov 17, 2012
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    In my public_html I have placed both my jar file and my webclient.html.

    When I run my webclient.html in my html code editor I get this error:
    ClassNotFoundException - Loader.class
    And when I run the webclient.html on my webpage I get this error:
    Incompatible magic value 1008813135 in class file Loader

    1. I have tried placing my jar file in different spots(as well as changing archive), but I've received the same errors.
    2. I know it has been jarred correctly, I can run it outside of the webclient.html.
    3. I can find Loader.class inside my jar file by viewing my jar file in cPanel.
    4. I've been trying to fix this, hoping it would be an easy fix but I've had no luck.
    5. The suggested html codes I've seen have worked for other people, but not for me.

    My guess is that it can't read the jar file, or the jar cannot be found.

    Any suggestions would be appreciated.

    webclient.html:
    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <title>Maximus Webclient</title>
    <meta content="NO-CACHE" http-equiv="PRAGMA" />
    </head>
    <body bgcolor="black">
    <center><applet name="Maximus Webclient" archive="Maximus.jar" code="Loader.class" width="765" height="503" title="Java(TM)">
    <param name="java_arguments" value="-Xmx1024m" /></applet></center>
    </body>
    </html>
    
    Not sure if this would help but I'll include it,
    What is added to my html code after an error occurs:
    Code:
    <script src="chrome-extension://lifbcibllhkdhoafpjfnlhfpfgnpldfl/document_iterator.js"></script>
    <script src="chrome-extension://lifbcibllhkdhoafpjfnlhfpfgnpldfl/find_proxy.js"></script>
    <script src="chrome-extension://lifbcibllhkdhoafpjfnlhfpfgnpldfl/get_html_text.js"></script>
    <script src="chrome-extension://lifbcibllhkdhoafpjfnlhfpfgnpldfl/global_constants.js"></script>
    <script src="chrome-extension://lifbcibllhkdhoafpjfnlhfpfgnpldfl/name_injection_builder.js"></script>
    <script src="chrome-extension://lifbcibllhkdhoafpjfnlhfpfgnpldfl/number_injection_builder.js"></script>
    <script src="chrome-extension://lifbcibllhkdhoafpjfnlhfpfgnpldfl/string_finder.js"></script>
    <script src="chrome-extension://lifbcibllhkdhoafpjfnlhfpfgnpldfl/change_sink.js"></script>
    <meta name="document_iterator.js" />
    <meta name="find_proxy.js" />
    <meta name="get_html_text.js" />
    <meta name="global_constants.js" />
    <meta name="number_injection_builder.js" />
    <meta name="change_sink.js" />
    <meta name="string_finder.js" />
    <meta name="name_injection_builder.js" />
    
     
  2. concerto49

    concerto49 Member

    Joined:
    Nov 1, 2012
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    DataCenter Provider
    This sounds like the version of Java on your server is older than what you used to create the jar? Either that or the jar/classes are corrupted.
     
Loading...

Share This Page