1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Running java applet without needed permission

Discussion in 'General Programming Chat' started by xNotch, Sep 21, 2014.

  1. xNotch

    xNotch Registered Member

    Joined:
    Sep 16, 2014
    Messages:
    69
    Likes Received:
    15
    How do you run an applet without it being blocked by the browser? I've read up a little on signing it with a public key, but will it still need to be given permission to run? It doesn't do anything with the file system it runs runs and sends back the occasional server request.
     
  2. Arbvestor

    Arbvestor Newbie

    Joined:
    Feb 11, 2014
    Messages:
    25
    Likes Received:
    15
    Occupation:
    Support Tech
    Location:
    Spain
    Home Page:
    You are sure that you want to use a Java-applet in the browser? The only real world application of this stone-age technology these days I know is within companies. In the open internet java-apps are pretty much dead. I still wonder why the hell the applet-programming is still part of most java learning curriculums. Java-applets have so many security issues that every half witted IT-geek will tell you to turn that off in your browser anyway.

    Sorry about the rant. And sorry that this is no answer to your question.

    If possible, please move on to more modern technologies, namely JavaScript/HTML5. If your script needs more rights, go with a browser extension.
     
  3. xNotch

    xNotch Registered Member

    Joined:
    Sep 16, 2014
    Messages:
    69
    Likes Received:
    15
    the applet does a lot of calculations which i think would run unbearably slow in javascript.
     
  4. Gogol

    Gogol Elite Member

    Joined:
    Sep 10, 2010
    Messages:
    3,066
    Likes Received:
    2,872
    Gender:
    Male
    It's a browser thing and I don't think it is possible to run the applet silently. Even banking applications which use java isn't able to auto-run an applet ( and quite rightly so).
     
  5. Arbvestor

    Arbvestor Newbie

    Joined:
    Feb 11, 2014
    Messages:
    25
    Likes Received:
    15
    Occupation:
    Support Tech
    Location:
    Spain
    Home Page:
    Did you test current JavaScript engines? I understand the limitations for hard math with JavaScript, since there is no real long type and everything is done in floating point arithmetic, but i found the JavaScript JIT-compilers of modern browsers pretty powerful. Maybe you should consider doing the calculations on the back-end? Or is it client dependent what needs to be calculated?
     
  6. xNotch

    xNotch Registered Member

    Joined:
    Sep 16, 2014
    Messages:
    69
    Likes Received:
    15
    It's a client side thing else I'd just do it on the server. But I have started thinking about javascript. I was reading up a little on asm.js anyone have any experience?
     
  7. cleanguy2

    cleanguy2 Jr. VIP Jr. VIP

    Joined:
    Jan 28, 2013
    Messages:
    128
    Likes Received:
    19
    Avoid using applets. They are blocked by default in Chrome (signed or not).
     
  8. member8200

    member8200 Regular Member

    Joined:
    Aug 9, 2014
    Messages:
    469
    Likes Received:
    33
    It's a browser security for the users, i don't think you can run those applet silently without the browser noticing it.
    BTW, why are you still using Java-applets. There are a lot of security issues with that. you can switch to a more modern technology.

    Best of luck. :)
     
    Last edited: Oct 21, 2014