Results 1 to 7 of 7

Thread: Can a Java applet do this?

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Oct 2000
    Posts
    1,463

    Can a Java applet do this?

    Can a java applet on a web page run on the user's machine and download files and launch on their computer? I'm just trying to find out what permissions a java applet can have.

    I need the user to click on a web page and have an applet check to see if a program is on their computer and either download/update or just run it if it is there. I noticed gotomypc.com and glance.net uses java.

    I know I could do this with an activex but these other places used java so I'm wondering if there is an advantage for it? Its only going to be on XP machines anyways but just want to see what java can do.

    Thanks!

    Warren

  2. #2
    Addicted Member
    Join Date
    Jan 2006
    Posts
    246

    Re: Can a Java applet do this?

    I would like to know this too.

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Oct 2000
    Posts
    1,463

    Re: Can a Java applet do this?

    I'm not a java programmer but after reading some web sites, what about:

    RunTime.getRuntime.exec

    Can this be used in a java applet to launch an exe?

  4. #4
    Arabic Poster ComputerJy's Avatar
    Join Date
    Nov 2005
    Location
    Happily misplaced
    Posts
    2,513

    Re: Can a Java applet do this?

    Quote Originally Posted by WarrenW
    I'm not a java programmer but after reading some web sites, what about:

    RunTime.getRuntime.exec

    Can this be used in a java applet to launch an exe?
    Yes, if signed with a valid class-1 certificate
    "I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
    My Blog

  5. #5

    Thread Starter
    Frenzied Member
    Join Date
    Oct 2000
    Posts
    1,463

    Re: Can a Java applet do this?

    Thanks for letting me know this. I do plan on having one signed. Just have to find someone I can pay to write the applet for me now.

    Btw, will the user have to download any java runtime libs to run the applet first or will it all be smooth sailing to launch it as long as the browser has java applets enabled?

    Thanks

  6. #6
    Arabic Poster ComputerJy's Avatar
    Join Date
    Nov 2005
    Location
    Happily misplaced
    Posts
    2,513

    Re: Can a Java applet do this?

    Quote Originally Posted by WarrenW
    Thanks for letting me know this. I do plan on having one signed. Just have to find someone I can pay to write the applet for me now.

    Btw, will the user have to download any java runtime libs to run the applet first or will it all be smooth sailing to launch it as long as the browser has java applets enabled?

    Thanks
    Even if you have Java enabled in your browser, you still have to install the JRE to run java on your machine, so basically you should provide a link like all other sites do
    "I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
    My Blog

  7. #7
    Frenzied Member System_Error's Avatar
    Join Date
    Apr 2004
    Posts
    1,111

    Re: Can a Java applet do this?

    Like CJ said, you have to sign the applet, but the chances of somebody accepting a certificate from a probably "not well known site" is slim. (I know I don't). I find signing applets to be a pain the buttox.

Posting Permissions

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



Click Here to Expand Forum to Full Width