0 Replies Latest reply on Jun 19, 2019 10:06 PM by Walter Boggs

    Java Usage Tracker: why does it fail?

    Walter Boggs

      OS: Windows 10

      JRE 1.8.0_202

       

      I'm having trouble getting output from the Java Usage Tracker described at https://docs.oracle.com/javacomponents/usage-tracker/overview/toc.htm

       

      I am using the example properties file describe in the document. The only change is that I removed the leading dot from the output filename ".java_usagetracker", since Windows does not want to create a file with a leading dot.

       

      My test is a simple HelloWorld class that does execute and print the output string:

       

      public class HelloWorld {

        public static void main(String[] args)

        {

          System.out.print("Hello World");

        }

      }

       

      The usagetracker.properties file is in C:\Program Files\Java\conf with the aim of monitoring all installed JREs - my workstation has jre1.8.0_192 and jre1.8.0_202 installed. Looking at the timestamps in oracle_jre_usage, it appears that the 202 update is the JVM that runs.

       

      The output file specified in my properties file never gets created. Can anyone suggest what I'm missing or suggest a different test I can run? Thanks.