Path: csiph.com!eternal-september.org!feeder.eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail From: Daniele Futtorovic Newsgroups: comp.lang.java.security Subject: Re: how to block Java Date: Sat, 21 Jul 2018 20:42:52 +0200 Organization: A noiseless patient Spider Lines: 23 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Injection-Date: Sat, 21 Jul 2018 18:43:21 -0000 (UTC) Injection-Info: reader02.eternal-september.org; posting-host="502710a8987363d315df5a10d7458ee6"; logging-data="29400"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX186+W67Be63/bK2eJHu6H4t" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 Cancel-Lock: sha1:k/jBChmFEEKMIws83J5i4lr5RfE= In-Reply-To: X-Antivirus-Status: Clean Content-Language: en-GB X-Antivirus: AVG (VPS 180721-4, 07/21/2018), Outbound message Xref: csiph.com comp.lang.java.security:327 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.