/java-language-server

Java language server

Primary LanguageJavaEclipse Public License 1.0EPL-1.0

Build Status

This repository contains only the server implementation. For Visual Studio Code extension that uses this server visit vscode-java

java-language-server

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.

Features

  • 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

First Time Setup

  1. Fork and clone the repository

  2. 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.

  3. Once installed use File > Open Projects from File System... and point it java-language-server and Eclipse should automatically detect the projects and import it properly.

  4. 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.

Building command line

server folder contains the java-server implemementation and does not depend to any client

  1. Install Apache Maven

  2. This command will build the server into /org.jboss.tools.vscode.product/target/repository folder:

    $ cd server
    $ mvn clean verify 

Generating simple java app for testing

mvn archetype:generate -DgroupId=com.mycompany.app
-DartifactId=my-app
-DarchetypeArtifactId=maven-archetype-quickstart
-DinteractiveMode=false

Feedback

License

EPL 1.0, See LICENSE file.