jostillmanns / javacomplete

java completion daemon
31 stars 0 forks source link

An autocompletion daemon for the Java programming language

The completion daemon provides ide like functionality. Development is at a very early stage. The completion definitely can be improved and is likely not to work in some corner cases. Nevertheless I am already using the completion for development, so I think it's in a useable state.

The following features are currently implemented:

planed features are

Builds

available on javacomplete.tillmanns.me

the builds may contain already closed issues, I recommend building the software from source using gradle.

Setup

The application currently holds dependencies on the following packages:

I recently switched to the eclipse ASTParser, which allows to complete from intact code leafs inside the ast code tree. All the dependencies, including the eclipse parser will be downloaded automatically using the maven central repository.

Junixsocket native lib

You can download the library files here: junixsocket/downloads/list

Instructions on how to install can be found here: junixsocket/wiki/GettingStarted

You have to copy the .so files to the LIBRARYPATH, which is /opt/newsclub/lib-native by default. The easiest way to setup them is to use the default path.

Start the daemon

In order for the import feature to work with classes living in the standard library you have to set the JAVASRC environment variable pointing at the jdk source.

Dependencies may be referenced using the JAVACOMPLETPATH variable (using a colon seperated list).

example call:

JAVASRC=/usr/lib/jvm/java-7-openjdk/src.zip \
 JAVACOMPLETEPATH=build/libs/javacomplete-all-0.1.0.jar \
 java -jar build/libs/javacomplete-all-0.1.0.jar

Emacs setup

using github.com/jostillmanns/javacomplete.el