Archi Forum

Archi => General Archi Discussion => Topic started by: alkmaar_yuri on February 13, 2019, 10:04:41 AM

Title: icacls.exe
Post by: alkmaar_yuri on February 13, 2019, 10:04:41 AM
Hi there,
new user here
I am an administrator for a company that would like to start using Arhi

We are working in a Citrix environment en so I have downloaded the portable version (4.3.3) and put it on a network share to start from.
When I start it from within Citrix I get an error that it tries to start icacls.exe from the c:\windows\system32 folder.

Can somebody explain why icacls.exe is started and what it tries to do?

It doesn't matter if the shared folder where the portable version of Archi resides is read-only or has full read-write access, the error always pops-up.

After clicking away the error, Archi just runs as normal, so just very curious why/what icacls.exe does.
Title: Re: icacls.exe
Post by: Phil Beauvoir on February 13, 2019, 10:08:57 AM
Also this - https://bugs.openjdk.java.net/browse/JDK-8169236
Title: Re: icacls.exe
Post by: Phil Beauvoir on February 13, 2019, 10:13:27 AM
If it's the bundled JRE that's causing problems, delete the "jre" folder in the Archi installation and use a more recent one.
Title: Re: icacls.exe
Post by: alkmaar_yuri on February 13, 2019, 10:21:14 AM
thanx Phil for your quick answer.

I am not to good on Java/JRE

How/where can I find/implement a newer version?
Would be great if you could explain the steps needed.

Thanks in advance
Title: Re: icacls.exe
Post by: Phil Beauvoir on February 13, 2019, 13:53:19 PM
I've spent some more time investigating this.

When Oracle Java launches it tries to write to C:\ProgramData\Oracle\Java\.oracle_jre_usage

If permission is denied then you  may see the symptoms you get.

Either allow write permissions to this folder or read this:

https://bugs.java.com/bugdatabase/view_bug.do?bug_id=JDK-8169236

and this:

https://docs.oracle.com/javacomponents/usage-tracker/overview/toc.htm#JSUTO-GUID-A2A9C366-42CF-45FD-B549-6A861115451E

So, if you create a file called "usagetracker.properties"  and add this line to it:

com.oracle.usagetracker.track.last.usage = false

And then put this file in the folder "jre/lib/management" in Archi's "jre" folder it won't attempt to write usage files.

Title: Re: icacls.exe
Post by: alkmaar_yuri on February 13, 2019, 14:15:09 PM
awesome, did not have time to dig deeper yet, but did nailed it great find