Not starting on PC due to the instance file (Access is denied)

If you haven’t done so yet, be sure to check the FAQ.

Description

Won’t start. I double click on the AudioRelay icon on my Windows PC but nothing happens. I have used it for years and no problem, suddenly it won’t start. Not aware of any changes, apart from Msoft updates.

Have tried, uninstall numerous times and re-download. Searched the registry and deleted all AudioRelay instances.

Have tried generating a log file using “. \runtime\bin\java.exe -cp "app/audiorelay.jar" com.azefsw.audioconnect.desktop.app.MainKt > %USERPROFILE%/desktop/output.log 2>&1" But just a zero bytes log generated.

Have disabled all of my AV - Bitdefender. Have tried running the .exe file as Admin. Hvae tried in safe Mode. Have added Env Variable of SKIKO_RENDER_API to SOFTWARE

Nothing I have tried lets AudioRelay start.

Any help please.

Devices

Please note the model and versions of your devices.
For example, if you’re trying to connect a phone to a laptop:

The phone is a Samsung S10e - but that app runs OK

PC is an ASRock m/b - Z370M Pro 4.Now running Windows 11 Pro build 26200. No separate graphics card. 16Gb RAM, 40Gb freespace on SSD. BitDefender Total Security 27.0.56.308. Windows Firewall not running.

Thank you for reading

Could you please try the latest early access version from Announcements - AudioRelay?

I have also encountered this. On desktop with version 0.27.5(what taskmanager says, and download file)
Could your confirm if you are talking about stable version or alpha?

I have tried, uninstalled then downloaded and reinstalled the latest version, 1.0.0.0-alpha07.

Same result, nothing happens or is displayed.

You’ll need to retry the terminal command, as somethings has to be printed.

  • Start PowerShell
  • Run cd 'C:\Program Files (x86)\AudioRelay\'
  • Try .\runtime\bin\java.exe -cp "app/audiorelay.jar" com.azefsw.audioconnect.desktop.app.MainKt
    • If the command shows something, then you could try to create the log file via .\runtime\bin\java.exe -cp "app/audiorelay.jar" com.azefsw.audioconnect.desktop.app.MainKt > "$env:USERPROFILE\desktop\output.log" 2>&1
    • Otherwise, copy-paste the result

Hi and thank you.

Tried this:

Try .\runtime\bin\java.exe -cp "app/audiorelay.jar" com.azefsw.audioconnect.desktop.app.MainKt

result

PS C:\\Program Files (x86)\\AudioRelay>
PS C:\\Program Files (x86)\\AudioRelay> .\\runtime\\bin\\java.exe -cp “app/audiorelay.jar” comazefsw.audioconnect.desktop.app.MainKt
Error: Could not find or load main class comazefsw.audioconnect.desktop.app.MainKt
Caused by: java.lang.ClassNotFoundException: comazefsw.audioconnect.desktop.app.MainKt

Then ran this

.\\runtime\\bin\\java.exe -cp "app/audiorelay.jar" com.azefsw.audioconnect.desktop.app.MainKt > "$env:USERPROFILE\\desktop\\output.log" 2>&1

Result - text of log file created:

1.0.0-alpha07 2026-03-19 11:50:14.129 INFO    main                                      os: Windows 11, osVersion: 10.0, arch: amd64
.\\runtime\\bin\\java.exe : 1.0.0-alpha07 2026-03-19 11:50:14.142 ERROR   main
C:\\Users\\JRS\\AppData\\Local\\AudioRelay\\locks\\instance (Access is denied)
At line:1 char:1

* .\\runtime\\bin\\java.exe -cp “app/audiorelay.jar” com.azefsw.audioconne …
* 
    + CategoryInfo          : NotSpecified: (1.0.0-alpha07 2...cess is denied):String) [], RemoteException
    + FullyQualifiedErrorId : NativeCommandError
  
  

java.io.FileNotFoundException: C:\\Users\\JRS\\AppData\\Local\\AudioRelay\\locks\\instance (Access is denied)
at java.base/java.io.FileOutputStream.open0(Native Method)
at java.base/java.io.FileOutputStream.open(Unknown Source)
at java.base/java.io.FileOutputStream.(Unknown Source)
at java.base/java.io.FileOutputStream.(Unknown Source)
at btd.b(SourceFile:10)
at com.azefsw.audioconnect.desktop.app.MainKt.main(SourceFile:32)

Good, some progress!

Before starting, the app checks if another instance of AudioRelay is already running.
In your case, either there’s still a trailing AudioRelay process running, or the path to $env:LOCALAPPDATA/AudioRelay/locks/instance is made inaccessible by something.

Please try to run

Get-Process -Name AudioRelay

Does it list anything such as this?

If so, try

Stop-Process -Name AudioRelay

Then

Remove-Item $env:LOCALAPPDATA/AudioRelay/locks/instance
(Please post the result if it fails)

And again

.\runtime\bin\java.exe -cp "app/audiorelay.jar" com.azefsw.audioconnect.desktop.app.MainKt > "$env:USERPROFILE\desktop\output.log" 2>&1

If the app doesn’t show up, please post the new output.log.
And also the log files you get by running

start "$env:LOCALAPPDATA/AudioRelay/logs"

or going to

%LOCALAPPDATA%/AudioRelay/logs

via the explorer

Get-Process -Name AudioRelay produces:

PS C:\\Program Files (x86)\\AudioRelay> Get-Process -Name AudioRelay
Get-Process : Cannot find a process with the name “AudioRelay”. Verify the process name and call the cmdlet again.
At line:1 char:1

* Get-Process -Name AudioRelay

* 
    + CategoryInfo          : ObjectNotFound: (AudioRelay:String) [Get-Process], ProcessCommandException
    + FullyQualifiedErrorId : NoProcessFoundForGivenName,Microsoft.PowerShell.Commands.GetProcessCommand
  • New output log:
* 1.0.0-alpha07 2026-03-19 15:12:00.506 INFO    main                                      os: Windows 11, osVersion: 10.0, arch: amd64
  .\\runtime\\bin\\java.exe : 1.0.0-alpha07 2026-03-19 15:12:00.515 ERROR   main
  C:\\Users\\JRS\\AppData\\Local\\AudioRelay\\locks\\instance (Access is denied)
  At line:1 char:1

  * .\\runtime\\bin\\java.exe -cp “app/audiorelay.jar” com.azefsw.audioconne …
  *
      + CategoryInfo          : NotSpecified: (1.0.0-alpha07 2...cess is denied):String) [], RemoteException
      + FullyQualifiedErrorId : NativeCommandError
    
    

  java.io.FileNotFoundException: C:\\Users\\JRS\\AppData\\Local\\AudioRelay\\locks\\instance (Access is denied)
  at java.base/java.io.FileOutputStream.open0(Native Method)
  at java.base/java.io.FileOutputStream.open(Unknown Source)
  at java.base/java.io.FileOutputStream.(Unknown Source)
  at java.base/java.io.FileOutputStream.(Unknown Source)
  at btd.b(SourceFile:10)
  at com.azefsw.audioconnect.desktop.app.MainKt.main(SourceFile:32)

Can’t post the log file - new user but I have copied the latest part here. I notice that the log time stamp is showing Jan 2016 but my PC is correct time and the log file date too is correct:

2026-01-05 08:17:59:863 \[INFO\] Version: 0.27.5, os: Windows 10, osVersion: 10.0
2026-01-05 08:18:00:203 \[INFO\] Initializing locale to en
2026-01-05 08:18:00:231 \[INFO\] Starting IpcCoordinatorService …
2026-01-05 08:18:00:284 \[INFO\] Starting the server…
2026-01-05 08:18:00:285 \[INFO\] Waiting for devices from windows’ backend…
2026-01-05 08:18:00:288 \[INFO\] Got open ports at 59300 and 59350
2026-01-05 08:18:00:291 \[INFO\] Waiting for devices from RtAudio…
2026-01-05 08:18:00:294 \[INFO\] Messages socket waiting on a connection…
2026-01-05 08:18:00:296 \[INFO\] Starting backend…
2026-01-05 08:18:00:296 \[INFO\] Audio socket waiting on a connection…
2026-01-05 08:18:00:343 \[INFO\] Checking for update…
2026-01-05 08:18:00:759 \[INFO\] Found no update
2026-01-05 08:18:00:801 \[INFO\] Wait for backend backend…
2026-01-05 08:18:00:853 \[INFO\] Audio socket connected
2026-01-05 08:18:00:857 \[INFO\] Messages socket created
2026-01-05 08:18:00:877 \[INFO\] Showing main window…
2026-01-05 08:18:00:963 \[INFO\] Rendering api: DIRECT3D
2026-01-05 08:18:01:341 \[INFO\] Backend is ready
2026-01-05 08:18:01:346 \[INFO\] Requesting startup settings…
2026-01-05 08:18:01:587 \[INFO\] Windows’ backend devices: \[WindowsAudioDevice(id={0.0.0.00000000}.{5656870b-bceb-4d0d-b5f8-3fb380baae63}, type=Render, name=Speakers (Realtek(R) Audio), isDefault=true, sampleRate=48000, channels=2), WindowsAudioDevice(id={0.0.0.00000000}.{403ec452-5930-48d2-9d6f-931fb95b9618}, type=Render, name=Virtual Speakers (Virtual Speakers for AudioRelay), isDefault=false, sampleRate=48000, channels=2)\]
2026-01-05 08:18:03:554 \[INFO\] Network addresses: NetworkInfo(broadcastAddresses=\[192.168.0.255\], localAddresses=\[192.168.0.98\])
2026-01-05 08:18:05:877 \[INFO\] Virtual mic: not installed, Virtual speaker: 1.0.2.0
2026-01-05 08:18:11:527 \[INFO\] Remote device connected: 192.168.0.46
2026-01-05 08:18:11:553 \[INFO\] Received client config, clientVersion: 0.26.1, os: ANDROID, osVersion: Android API 31
2026-01-05 08:18:11:577 \[INFO\] Asking backend to start capture. EventSync: true, ContinuousStream: true, AudioConfig: AudioConfig(sampleRate=48000, bits=16, channels=2), AudioDevice: Speakers (Realtek(R) Audio),
2026-01-05 08:18:12:121 \[INFO\] Audio pipeline is emitting values
2026-01-05 09:01:17:335 \[INFO\] Remote device disconnected: 192.168.0.46…
2026-01-05 09:01:17:340 \[INFO\] Asking backend to stop capture…
2026-01-05 09:02:12:435 \[INFO\] Remote device connected: 192.168.0.46
2026-01-05 09:02:12:456 \[INFO\] Received client config, clientVersion: 0.26.1, os: ANDROID, osVersion: Android API 31
2026-01-05 09:02:12:457 \[INFO\] Asking backend to start capture. EventSync: true, ContinuousStream: true, AudioConfig: AudioConfig(sampleRate=48000, bits=16, channels=2), AudioDevice: Speakers (Realtek(R) Audio),
2026-01-05 09:02:12:974 \[INFO\] Audio pipeline is emitting values
2026-01-05 09:16:14:755 \[INFO\] Stopping the server, reason: shutdown
2026-01-05 09:16:14:755 \[INFO\] Remote device disconnected: 192.168.0.46…
2026-01-05 09:16:14:756 \[INFO\] Asking backend to stop capture…
2026-01-05 09:16:14:758 \[INFO\] Destroying backend due to cancellation…
1.0.0-alpha07 2026-03-18 18:19:01.172 INFO    main                                      os: Windows 11, osVersion: 10.0, arch: amd64
1.0.0-alpha07 2026-03-18 18:19:01.177 ERROR   main                                      C:\\Users\\JRS\\AppData\\Local\\AudioRelay\\locks\\instance (Access is denied)
java.io.FileNotFoundException: C:\\Users\\JRS\\AppData\\Local\\AudioRelay\\locks\\instance (Access is denied)
at java.base/java.io.FileOutputStream.open0(Native Method)
at java.base/java.io.FileOutputStream.open(Unknown Source)
at java.base/java.io.FileOutputStream.(Unknown Source)
at java.base/java.io.FileOutputStream.(Unknown Source)
at btd.b(SourceFile:10)
at com.azefsw.audioconnect.desktop.app.MainKt.main(SourceFile:32)

1.0.0-alpha07 2026-03-18 18:19:13.203 INFO    main                                      os: Windows 11, osVersion: 10.0, arch: amd64
1.0.0-alpha07 2026-03-18 18:19:13.212 ERROR   main                                      C:\\Users\\JRS\\AppData\\Local\\AudioRelay\\locks\\instance (Access is denied)
java.io.FileNotFoundException: C:\\Users\\JRS\\AppData\\Local\\AudioRelay\\locks\\instance (Access is denied)
at java.base/java.io.FileOutputStream.open0(Native Method)
at java.base/java.io.FileOutputStream.open(Unknown Source)
at java.base/java.io.FileOutputStream.(Unknown Source)
at java.base/java.io.FileOutputStream.(Unknown Source)
at btd.b(SourceFile:10)
at com.azefsw.audioconnect.desktop.app.MainKt.main(SourceFile:32)

1.0.0-alpha07 2026-03-18 18:19:31.668 INFO    main                                      os: Windows 11, osVersion: 10.0, arch: amd64
1.0.0-alpha07 2026-03-18 18:19:31.673 ERROR   main                                      C:\\Users\\JRS\\AppData\\Local\\AudioRelay\\locks\\instance (Access is denied)
java.io.FileNotFoundException: C:\\Users\\JRS\\AppData\\Local\\AudioRelay\\locks\\instance (Access is denied)
at java.base/java.io.FileOutputStream.open0(Native Method)
at java.base/java.io.FileOutputStream.open(Unknown Source)
at java.base/java.io.FileOutputStream.(Unknown Source)
at java.base/java.io.FileOutputStream.(Unknown Source)
at btd.b(SourceFile:10)
at com.azefsw.audioconnect.desktop.app.MainKt.main(SourceFile:32)

1.0.0-alpha07 2026-03-18 18:19:33.977 INFO    main                                      os: Windows 11, osVersion: 10.0, arch: amd64
1.0.0-alpha07 2026-03-18 18:19:33.986 ERROR   main                                      C:\\Users\\JRS\\AppData\\Local\\AudioRelay\\locks\\instance (Access is denied)
java.io.FileNotFoundException: C:\\Users\\JRS\\AppData\\Local\\AudioRelay\\locks\\instance (Access is denied)
at java.base/java.io.FileOutputStream.open0(Native Method)
at java.base/java.io.FileOutputStream.open(Unknown Source)
at java.base/java.io.FileOutputStream.(Unknown Source)
at java.base/java.io.FileOutputStream.(Unknown Source)
at btd.b(SourceFile:10)
at com.azefsw.audioconnect.desktop.app.MainKt.main(SourceFile:32)

I am now away from my PC for a week and a day, so apologies I can not do any more at present. I very much appreciate your help and if I may I will return to this thread on the 29th march.

Thanks for the logs.

When coming back, please check the folder at C:\Users\JRS\AppData\Local\AudioRelay\locks

Is there an instance file?
Could you try to delete it and try again?

My flight got cancelled! Window too strong.

I have just looked for the instance file, and yes there us, zero bytes.

Deleted and yipee Audiorelay now loads and works.

Excellent thank you for all your investigation and help.

The programe is now better still.

Brilliant

1 Like