Skip to content

Conversation

@BoykoAlex
Copy link
Contributor

@BoykoAlex BoykoAlex commented Oct 28, 2025

Java version is passed from Java LS to Boot LS. Thought it might be a good opportunity to pass just VM object rather than a lonely java version string and include that project's java home/installation folder along with it in the VM object.
There is a utility added to JavaUtils findJavaExecutable(File vmInstallationLocation) that is taken from StandardVMType in JDT launching.

There is a JavaUtils.javaHomeFromLibJar(Path libJar) which we could use to find java home for a project from the jre lib jar... that would be a less disturbing change.

Felt like passing the java home (or a java executable) from the java ls might be more robust... At the same time the JRE/JDK file system layout hasn't changed for as far as i can remember...

@martinlippert
Copy link
Member

Makes a lot of sense to me, looks great. The only thing that comes to my mind is whether to call it VM or something like JRE, since it is not really referring to a virtual machine, but more a JRE or JDK install. But other than that, let's go ahead with this.

Signed-off-by: BoykoAlex <alex.boyko@broadcom.com>
Signed-off-by: BoykoAlex <alex.boyko@broadcom.com>
@BoykoAlex BoykoAlex marked this pull request as ready for review October 29, 2025 19:29
@BoykoAlex BoykoAlex merged commit b0d1d77 into main Oct 29, 2025
4 checks passed
@BoykoAlex BoykoAlex deleted the java-exec branch November 7, 2025 05:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants