Java profiler fails due to file permissions

Trying to Run Intellij Profiler
Getting
Exception in thread "main" java.lang.IllegalStateException: Can't create Flight Recorder. JFR repository directory (C:\WINDOWS) exists, but isn't writable
    at jdk.jfr/jdk.jfr.FlightRecorder.getFlightRecorder(FlightRecorder.java:183)
    at jdk.jfr/jdk.jfr.Recording.<init>(Recording.java:114)
    at jdk.jfr/jdk.jfr.Recording.<init>(Recording.java:166)
    at one.profiler.JfrSync.start(JfrSync.java:46)

How can I configure the profiler to use a path with write permissions?

IntelliJ IDEA 2024.1.1 (Ultimate Edition)
Build #IU-241.15989.150, built on April 29, 2024
Licensed to OAG Aviation Worldwide Limited / Dan Tillin
You have a perpetual fallback license for this version.
Subscription is active until July 10, 2026.
Runtime version: 17.0.10+1-b1207.14 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Windows 11.0
GC: G1 Young Generation, G1 Old Generation
Memory: 3072M
Cores: 20
Registry:
 editor.distraction.free.mode=true
Non-Bundled Plugins:
 Batch Scripts Support (1.0.13)
 Statistic (4.3.1)
 CMD Support (1.0.5)
 com.jetbrains.jax.ws (241.14494.158)
 com.intellij.plugin.adernov.powershell (2.6.1)
 com.intellij.javaee.ejb (241.14494.158)
 gherkin (241.14494.150)
 cucumber-java (241.14494.158)
 com.intellij.ml.llm (241.15989.195)
 cucumber-javascript (241.15989.20)
 com.github.copilot (1.5.28.7313)
 org.sonarlint.idea (10.11.1.79663)
 com.bash.cmd (1.0.0)
 com.microsoft.tooling.msservices.intellij.azure (3.92.0-2024.1)
Kotlin: 241.15989.150-IJ


Regards

0

Please sign in to leave a comment.