This repository contains only the server implementation. For Visual Studio Code extension that uses this server visit vscode-java
java-language-server is a server implementation that provides Java language smartness. The server adheres to the language server protocol and can be used with any editor that supports the protocol. The server utilizes Eclipse JDT, M2Eeclipse.
- As you type reporting of parsing and compilation errors
- Code completion
- Javadoc hovers
- Code outline
- Code navigation
- Code lens (references)
- Highlights
- Code formatting
- Maven pom.xml project support
-
Fork and clone the repository
-
Install Eclipse Neon Java EE that will have most needed already installed. Alternately, you can get the Eclipse IDE for Java developers and just instal Eclipse PDE from marketplace.
-
Once installed use
File > Open Projects from File System...
and point itjava-language-server
and Eclipse should automatically detect the projects and import it properly. -
If you after import sees an error on
pom.xml
about Tycho, you can use Quick Fix (Ctrl+1) to install the Tycho maven integration.
server folder contains the java-server implemementation and does not depend to any client
-
Install Apache Maven
-
This command will build the server into
/org.jboss.tools.vscode.product/target/repository
folder:
$ cd server
$ mvn clean verify
mvn archetype:generate -DgroupId=com.mycompany.app
-DartifactId=my-app
-DarchetypeArtifactId=maven-archetype-quickstart
-DinteractiveMode=false
- File a bug in GitHub Issues.
- Tweet us with other feedback.
EPL 1.0, See LICENSE file.