Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 7 of 7
  1. #1
    New Coder
    Join Date
    Feb 2013
    Posts
    44
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Applet Not Loading

    I have an applet someone wrote for me back in 2004. I am trying to get it to work on my website but it doesnt load. It works on my computer but not when i load it on web server and try to run it from my website If I use this code:

    Code:
     <applet name="LoanCalculator"
        code="MWLoan.Loan.class"
        archive="LoanCalculator.jar, jakarta-poi-1.5.1-final-20020615.jar"
        width=10 height=10>
        </applet>
    I goes as far as a java security warning pop up and then thats it


    If I try and go this route:

    Code:
    <embed id="LoanCalculator"
           type="application/x-java-applet;version=1.6"
           width="256" height="256" 
           archive="LoanCalculator.jar, jakarta-poi-1.5.1-final-20020615.jar"
           code="MWLoan.Loan.class"
           pluginspage="http://java.com/download/"
           myParam="My Param Value" />-->
    it gives me an exception error

    MWLoan.Loan.class could not be found

    here is a link to my site:

    http://www.pacificfinancial.com/loan...der/applet.htm

    Can someone point me in the right direction of what I am doing wrong. Thank you

  • #2
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Location
    Saskatoon, Saskatchewan
    Posts
    16,987
    Thanks
    4
    Thanked 2,660 Times in 2,629 Posts
    There's not a lot to go on here. So the first thing you should verify is that you have a certificate for your applet. Has it been signed?
    PHP Code:
    header('HTTP/1.1 420 Enhance Your Calm'); 

  • #3
    New Coder
    Join Date
    Feb 2013
    Posts
    44
    Thanks
    2
    Thanked 0 Times in 0 Posts
    I dont know, like I said it was built by another developer sometime ago but I like the app
    It was on another website and worked fine and it does run on my computer I am not sure if that menas anything

  • #4
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Location
    Saskatoon, Saskatchewan
    Posts
    16,987
    Thanks
    4
    Thanked 2,660 Times in 2,629 Posts
    Nope, the applet cannot be compared directly to running the jar. The problem is that applets often require signing for what they can and cannot do. Here's a link for what they can and cannot do: http://docs.oracle.com/javase/tutori.../security.html
    Here's the instructions for jar signing: http://docs.oracle.com/javase/1.5.0/...a_signing.html. It is a big process yes, but if your application does anything listed in the first links section for what the unsigned applets "cannot" do, than you must sign the applet.

    Let me take a step back here though. I didn't see your error the first time as being cannot find a class. Its been many years since I've written an applet, but like java.exe I'd expect that the .class on the codebase is not what you want. Remove the .class from the applet code attribute, and try again.
    PHP Code:
    header('HTTP/1.1 420 Enhance Your Calm'); 

  • #5
    New Coder
    Join Date
    Feb 2013
    Posts
    44
    Thanks
    2
    Thanked 0 Times in 0 Posts
    Nothing at all happens when I remove the .class from the applet attribute

    I found some notes in an mno file and they specifically state the MWLoan.Loan.class file to be there.


    its really bizare

  • #6
    New Coder
    Join Date
    Feb 2013
    Posts
    44
    Thanks
    2
    Thanked 0 Times in 0 Posts
    I found my problem , after reviewing the notes more carefully I see that I had an incorrect case letter

    It running now

    Now I need to learn how to edit the files and make some cosmetic changes

  • #7
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Location
    Saskatoon, Saskatchewan
    Posts
    16,987
    Thanks
    4
    Thanked 2,660 Times in 2,629 Posts
    Glad to hear you got it working. I'm a bit surprised that applets want .class extensions. I would have expected them to run just like the java does without the .class.
    PHP Code:
    header('HTTP/1.1 420 Enhance Your Calm'); 


  •  

    Posting Permissions

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