• how to block Java

    From Wendelin Uez@21:1/5 to All on Sat Jul 21 19:59:49 2018
    I had to install Java 8 in order to run a special program. This program is
    used very rarely but Java provides its functionality to other programs
    always, and therefore I would like to block Java so that other apps and
    scripts on my PC cannot make use of Java.

    My first idea was to rename Java components via batch before and after
    running the program, but I am not sure if this works realy as expected.

    How can I limit access to Java environment for any other programs allowing
    only myApp.exe to employ Java?

    Thanks, wuez

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Daniele Futtorovic@21:1/5 to Wendelin Uez on Sat Jul 21 20:42:52 2018
    On 2018-07-21 19:59, Wendelin Uez wrote:
    I had to install Java 8 in order to run a special program. This program
    is used very rarely but Java provides its functionality to other
    programs always, and therefore I would like to block Java so that other
    apps and scripts on my PC cannot make use of Java.

    My first idea was to rename Java components via batch before and after running the program, but I am not sure if this works realy as expected.

    How can I limit access to Java environment for any other programs
    allowing only myApp.exe to employ Java?

    Perhaps you could just remove the JRE installation directory from the $PATH?

    Or bundle your program with a JRE (at the cost of size, obviously).

    That wouldn't strictly speaking prevent another program from running
    "your" JRE, but they would have to know the directory it resides in.

    HTH,

    --
    DF.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Wendelin Uez@21:1/5 to All on Sun Jul 22 11:32:46 2018
    How can I limit access to Java environment for any other programs
    allowing only myApp.exe to employ Java?

    Perhaps you could just remove the JRE installation directory from the
    $PATH?

    I'm afraid this wouldn't work if registry entries are used fpr
    configuration.

    Or bundle your program with a JRE (at the cost of size, obviously).

    Yes, but how to do?

    Thanks, wuez

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Daniele Futtorovic@21:1/5 to Wendelin Uez on Sun Jul 22 23:25:43 2018
    On 2018-07-22 11:32, Wendelin Uez wrote:
    How can I limit access to Java environment for any other programs
    allowing only myApp.exe to employ Java?

    Perhaps you could just remove the JRE installation directory from the
    $PATH?

    I'm afraid this wouldn't work if registry entries are used fpr
    configuration.

    Or bundle your program with a JRE (at the cost of size, obviously).

    Yes, but how to do?

    Not sure; never tried it myself. Might simply zipping up the JRE dir work?

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Lothar Kimmeringer@21:1/5 to Wendelin Uez on Mon Oct 15 22:12:01 2018
    Wendelin Uez wrote:

    I had to install Java 8 in order to run a special program. This program is used very rarely but Java provides its functionality to other programs always, and therefore I would like to block Java so that other apps and scripts on my PC cannot make use of Java.

    I assume, we're talking Windows here? With Linux you can download
    Java as ZIP-file, so you can put it whereever you like.

    You can install the JDK instead of the JRE. The installer of
    the JDK also allows you to install the JRE but you can deselect
    it. The JDK is not added to the PATH-variable automatically,
    so it shouldn't be "visible" to other programs, except if they
    do a scan of the whole file-system.


    Cheers, Lothar
    --
    Lothar Kimmeringer E-Mail: spamfang@kimmeringer.de
    PGP-encrypted mails preferred (Key-ID: 0x8BC3CD81)

    Always remember: The answer is forty-two, there can only be wrong
    questions!

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)