Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ivanionut opened this issue Jul 4, 2024 · 1 comment

Comments

@ivanionut
Copy link

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
Copy link
Owner

ckaznocha commented Jul 5, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants