Java
About
Java Java is a general-purpose programming language that is class-based, object-oriented, and designed to have a few implementation dependencies as possible.
Installation
Change enable from False to True in the java section (cf module installation).
vscode-anywhere:
java:
enabled: TrueFor more details read the official documentation.
Requirements
No requirements.
VSCode
VSCode extensions
redhat.java
This extension provides Java language support.

vscjava.vscode-java-debug
This extension provides a lightweight Java debugger for Visual Studio Code.

vscjava.vscode-java-test
This extension allow to run and debug Java test cases in Visual Studio Code.

vscjava.vscode-maven
This extension allows to manage Maven projects, execute goals, generate a project from the archetype, improve the user experience for Java developers.

vscjava.vscode-java-dependency
This extension manages Java Dependencies in VSCode.

VisualStudioExptTeam.vscodeintellicode
This extension provides AI-assisted development features for Java.
shengchen.vscode-checkstyle
This extension provides real-time feedback about Checkstyle violations and quick fix actions.

redhat.vscode-xml
This extension provides support for creating and editing XML documents, based on the LSP4XML Language Server, running with Java.

pivotal.vscode-spring-boot
This extension provides validation and content assist for Spring Boot application.properties, application.yml properties files. As well as Boot-specific support for .java files.

vscjava.vscode-spring-initializr
This extension quickly generates a Spring Boot project in Visual Studio Code (VS Code). It helps you to customize your projects with configurations and manage Spring Boot dependencies.

vscjava.vscode-spring-boot-dashboard
Spring Boot Dashboard is an explorer in the side bar, you can view and manage all available Spring Boot projects in your workspace. It also supports the features to quickly start, stop or debug a Spring Boot project.

redhat.vscode-quarkus
This extension provides support for Quarkus development.

SummerSun.vscode-jetty
This extension allows to start and run or debug your war package on Jetty.

adashen.vscode-tomcat
This extension allows to debug or run your java war package in Apache Tomcat.

VSCode settings
Global settings
{
"java.semanticHighlighting.enabled": true
}Windows settings
{
"java.home": "C:\\VSCode-Anywhere\\apps\\scoop\\apps\\openjdk\\current",
"xml.java.home": "C:\\VSCode-Anywhere\\apps\\scoop\\apps\\openjdk\\current"
}Linux settings
{
"java.home": "/home/linuxbrew/.linuxbrew/opt/openjdk/libexec",
"xml.java.home": "/home/linuxbrew/.linuxbrew/opt/openjdk/libexec"
}MacOS settings
{
"java.home": "/home/linuxbrew/.linuxbrew/opt/openjdk/libexec",
"xml.java.home": "/home/linuxbrew/.linuxbrew/opt/openjdk/libexec"
}VSCode keybindings
No keybindings.
Software
Windows software
scoop
chocolatey
Linux software
brew
nix
MacOS software
brew
Documentation
VSCode-Anywhere
Environment
Windows environment
PATH: C:\VSCode-Anywhere\apps\scoop\apps\openjdk\current\bin;C:\VSCode-Anywhere\apps\scoop\apps\maven\current\bin
JAVA_HOME: C:\VSCode-Anywhere\apps\scoop\apps\openjdk\current
JDK_HOME: C:\VSCode-Anywhere\apps\scoop\apps\openjdk\currentIf jetty is enabled the following environment will be set:
JETTY_HOME: C:\SCode-Anywhere\apps\scoop\apps\Chocolatey\lib\jetty\tools\jettyLinux environment
PATH: /home/linuxbrew/.linuxbrew/opt/openjdk/bin
JAVA_HOME: /home/linuxbrew/.linuxbrew/opt/openjdk/libexec
JDK_HOME: /home/linuxbrew/.linuxbrew/opt/openjdk/libexecIf tomcat is enabled the following environment will be set:
CATALINA_BASE: /home/linuxbrew/.linuxbrew/opt/tomcat/libexec
CATALINA_HOME: /home/linuxbrew/.linuxbrew/opt/tomcat/libexecIf jetty is enabled the following environment will be set:
JETTY_HOME: /home/linuxbrew/.linuxbrew/opt/jetty/libexecMacOS environment
PATH: /home/linuxbrew/.linuxbrew/opt/openjdk/bin
JAVA_HOME: /home/linuxbrew/.linuxbrew/opt/openjdk/libexec
JDK_HOME: /home/linuxbrew/.linuxbrew/opt/openjdk/libexecIf tomcat is enabled the following environment will be set:
CATALINA_BASE: /home/linuxbrew/.linuxbrew/opt/tomcat/libexec
CATALINA_HOME: /home/linuxbrew/.linuxbrew/opt/tomcat/libexecIf jetty is enabled the following envrionment will be set:
JETTY_HOME: /home/linuxbrew/.linuxbrew/opt/jetty/libexecSpecific settings
spring_boot
If set to True, it will install additional components for Spring Boot:
vscode-anywhere:
java:
enabled: True
spring_boot: Truequarkus
If set to True, it will install additional components for Quarkus:
vscode-anywhere:
java:
enabled: True
quarkus: Truetomcat
If set to True, it will install additional components for Tomcat:
vscode-anwyhere:
java:
enabled: True
tomcat: Truejetty
If set to True, it will install additional components for Jetty:
vscode-anwyhere:
java:
enabled: True
jetty: TrueLast updated
Was this helpful?