meghanada-server

A Java IDE Server for your editor. Java IDE-like features to your favourite text editor.

2 years after

Meghanada-Server

Join the chat at https://gitter.im/mopemope/meghanada-server

CircleCI

A Java IDE Server for your editor. Java IDE-like features to your favourite text editor.

Features

Some planned and implemented features:

  • Server supports a network connection
  • Gradle and Maven project support
  • Run build tool task
  • Compile your project
  • Analyze java source (hooks into build)
  • Code completion
  • Optimize import
  • Jump declaration
  • Run junit test (include test runner)

Meghanada-Server support only emacs client (meghanada-mode)

Building

Requirement

  • JDK 8

If your project were maven project, It needs maven and add mvn command your $PATH.

Build jar

./gradlew clean shadowJar

Usage Server

see help.

java -jar path/to/meghanada.jar --help
usage: meghanada server
    --gradle-version <arg>   set use gradle version
 -h,--help                   show help
    --output <arg>           output format (sexp, csv, json). default:
                             sexp
 -p,--port <arg>             set server port. default: 55555
 -r,--project <arg>          set project root path. default: current path
 -v,--verbose                show verbose message (DEBUG)
    --version                show version information
 -vv,--traceVerbose          show verbose message (TRACE)

Run Server

java -jar path/to/meghanada.jar

Recommend settings jvm args.

java -XX:+UseConcMarkSweepGC -XX:SoftRefLRUPolicyMSPerMB=50 -Xverify:none -Xms256m -Dfile.encoding=UTF-8 -jar path/to/meghanada.jar

Meghanada-Server is required JDK 8 (not JRE). It used Compiler API.

Project

Gradle

TODO

Maven

TODO

Customize Project Manually

  • Write .meghanada.conf on project root.

TODO

License

GPL v3, See LICENSE file.

Related Repositories

meghanada-emacs

meghanada-emacs

A Better Java Development Environment for Emacs ...

awesome-stars

awesome-stars

Awesome List of my own! ...