CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 7 of 7
  1. #1
    Join Date
    Sep 2016
    Posts
    4

    Making Java applets run

    Hello:

    I've been working with my site Interactive Mathematics Miscellany and Puzzles (http://www.cut-the-knot.org) from 1996. With time, I wrote a few hundreds Java applets that illustrated math problems or math related puzzles. It was a very popular site, it is still is, but the applets no longer run (due to security concerns) in browsers, other than Firefox, and that after due confirmation via a warning dialog. This is certainly a sad situation as there is a lot students and math buffs may learn and enjoy. I seek an advice as to how to return the interactivity to the site. I converted several applets to apps but this does not seem right. Making them secure or rewriting them in JavaScript would jibe better with my original ideas and the site's configuration. But starting everything from a scratch, working with an applet at a time, seems like an enormous task - undoing what have been done over two decades. Thus I seek an advice of what can be done.

    Thank you,

    Alexander Bogomolny

  2. #2
    2kaud's Avatar
    2kaud is offline Super Moderator Power Poster
    Join Date
    Dec 2012
    Location
    England
    Posts
    7,822

    Re: Making Java applets run

    but the applets no longer run (due to security concerns) in browsers, other than Firefox
    For info, I use the latest version of Firefox and they don't run for me due to 'security concerns' even after confirmation via the warning dialog.

    PS It looks like they have not been identified by a certificate from a trusted authority. Do these now need to be 'digitally signed'?

    PPS The only way I could get them to run is to add http://www.cut-the-knot.org/ to the java exception site list and then confirming on the dialog that I do want to run.
    Last edited by 2kaud; September 3rd, 2016 at 10:25 AM.
    All advice is offered in good faith only. All my code is tested (unless stated explicitly otherwise) with the latest version of Microsoft Visual Studio (using the supported features of the latest standard) and is offered as examples only - not as production quality. I cannot offer advice regarding any other c/c++ compiler/IDE or incompatibilities with VS. You are ultimately responsible for the effects of your programs and the integrity of the machines they run on. Anything I post, code snippets, advice, etc is licensed as Public Domain https://creativecommons.org/publicdomain/zero/1.0/ and can be used without reference or acknowledgement. Also note that I only provide advice and guidance via the forums - and not via private messages!

    C++23 Compiler: Microsoft VS2022 (17.6.5)

  3. #3
    Join Date
    Sep 2016
    Posts
    4

    Re: Making Java applets run

    Quote Originally Posted by 2kaud View Post
    For info, I use the latest version of Firefox and they don't run for me due to 'security concerns' even after confirmation via the warning dialog.

    PS It looks like they have not been identified by a certificate from a trusted authority. Do these now need to be 'digitally signed'?

    PPS The only way I could get them to run is to add http://www.cut-the-knot.org/ to the java exception site list.
    Thank you for taking the time. Yes, this is how it is. The question is what can be done about it.

  4. #4
    2kaud's Avatar
    2kaud is offline Super Moderator Power Poster
    Join Date
    Dec 2012
    Location
    England
    Posts
    7,822

    Re: Making Java applets run

    Each of the java applets will need to be signed. Have a look at http://www.codejava.net/java-se/appl...=1&limitstart=
    All advice is offered in good faith only. All my code is tested (unless stated explicitly otherwise) with the latest version of Microsoft Visual Studio (using the supported features of the latest standard) and is offered as examples only - not as production quality. I cannot offer advice regarding any other c/c++ compiler/IDE or incompatibilities with VS. You are ultimately responsible for the effects of your programs and the integrity of the machines they run on. Anything I post, code snippets, advice, etc is licensed as Public Domain https://creativecommons.org/publicdomain/zero/1.0/ and can be used without reference or acknowledgement. Also note that I only provide advice and guidance via the forums - and not via private messages!

    C++23 Compiler: Microsoft VS2022 (17.6.5)

  5. #5
    Join Date
    Sep 2016
    Posts
    4

    Re: Making Java applets run

    Quote Originally Posted by 2kaud View Post
    Each of the java applets will need to be signed. Have a look at http://www.codejava.net/java-se/appl...=1&limitstart=
    Thank you. One question I have is whether it is possible to automate the procedure. Signing 600 applets may take years of dedicated work

  6. #6
    2kaud's Avatar
    2kaud is offline Super Moderator Power Poster
    Join Date
    Dec 2012
    Location
    England
    Posts
    7,822

    Re: Making Java applets run

    I'm not a java person, but it appears that to sign multiple applets you use the command keytool once and then the command jarsigner for each applet. It should be fairly easy to produce a program that generates a batch file using the output of keytool to sign the 600 applets (they are in the same folder?). Once you have the batch file generated then to sign the applets all that is needed is to execute the batch file.
    All advice is offered in good faith only. All my code is tested (unless stated explicitly otherwise) with the latest version of Microsoft Visual Studio (using the supported features of the latest standard) and is offered as examples only - not as production quality. I cannot offer advice regarding any other c/c++ compiler/IDE or incompatibilities with VS. You are ultimately responsible for the effects of your programs and the integrity of the machines they run on. Anything I post, code snippets, advice, etc is licensed as Public Domain https://creativecommons.org/publicdomain/zero/1.0/ and can be used without reference or acknowledgement. Also note that I only provide advice and guidance via the forums - and not via private messages!

    C++23 Compiler: Microsoft VS2022 (17.6.5)

  7. #7
    Join Date
    Sep 2016
    Posts
    4

    Re: Making Java applets run

    Quote Originally Posted by 2kaud View Post
    I'm not a java person, but it appears that to sign multiple applets you use the command keytool once and then the command jarsigner for each applet. It should be fairly easy to produce a program that generates a batch file using the output of keytool to sign the 600 applets (they are in the same folder?). Once you have the batch file generated then to sign the applets all that is needed is to execute the batch file.
    Sincerest thanks. I may well now try to at least convert a few applets and see how it works

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
  •  





Click Here to Expand Forum to Full Width

Featured