ckaznocha / SublimeLinter-contrib-CFLint

SublimeLinter plugin for Adobe ColdFusion, using CFLint.
MIT License
16 stars 9 forks source link

The operation could not be completed. Unable to locate a Java Runtime #28

Open ivanionut opened 5 months ago

ivanionut commented 5 months ago

hi @ckaznocha i get the following error on ST4/macOS:

SublimeLinter.plugin.cflint [WARNING]: cflint output:
The operation couldn’t be completed. Unable to locate a Java Runtime.
Please visit http://www.java.com for information on installing Java.

I have already installed java using sdkman:

java --version
openjdk 11.0.23 2024-04-16
OpenJDK Runtime Environment Temurin-11.0.23+9 (build 11.0.23+9)
OpenJDK 64-Bit Server VM Temurin-11.0.23+9 (build 11.0.23+9, mixed mode)

java

How can I solve this? Thanks!

ckaznocha commented 4 months ago

Hey @ivanionut, Sorry to hear you're having issues. Honestly I have not use Sublime Text or CF in almost a decade. Glad to hear this plugin still loads in Sublime Text but I'm unlikely to have the time to investigate. Perhaps there is someone out there that knows whats going wrong?

I suspect its just an issue of the shell Sublime Text uses to load the plugin missing some environment values that are set in your normal shell.