Extesion fails to start in Visual Studio 2022 (could not find java.dll)

Hi @padzeralu,

Thanks for reporting this issue! Since Java is embedded in the extension, the error “Error: could not find java.dll” could indicate a problem with the installation or that some files were blocked by security software.

I would suggest you to reinstall the extension and at the same time try checking your firewall or antivirus if they flagged and blocked the extension or any of its files.

:one: Reinstall the Extension

  • Uninstall the extension completely.
  • Restart Visual Studio.
  • Reinstall the latest version of the extension to ensure all files are properly installed.

:two: Check for Security Software Blocking

  • Your firewall or antivirus might have flagged and blocked the embedded Java files.
  • Try checking your antivirus/firewall after reinstalling the extension.
  • In that case you could add an exception for the extension in your security software.

If the issue persists, please let us know!

:three: Workaround: Manually specify a Java Installation

  • Another possible but less ideal solution would be to install java on your machine and let the extension use that installation.
  • To specify a JRE, go to Extensions > SonarQube for Visual Studio > Options… > SonarQube for Visual Studio > General > Java Home , add the path to your JRE, and restart your IDE to apply the setting.

Kind regards,
Vasileios Naskos

1 Like