简体   繁体   English

无法在emacs中设置jdee-server

[英]can't set jdee-server in emacs

In jdee-server's github, It says 它说,在jdee-server的github中

Copy target/jdee-bundle-${version}.jar to a directory and customize jdee-server-dir to point to the dir. 将target / jdee-bundle - $ {version} .jar复制到目录并自定义jdee-server-dir以指向dir。

But I can't understand it. 但我无法理解。 What is target/jdee-bundle-${version}.jar ? 什么是target/jdee-bundle-${version}.jar I install jdee using emacs melpa , it doesn't have such file. 我使用emacs melpa安装jdee ,它没有这样的文件。

In the current pom.xml maven file in the github repository, you can see that the jdee-server version number is: 在github存储库中的当前pom.xml maven文件中,您可以看到jdee-server版本号是:

<version>1.0-SNAPSHOT</version>

According to the README file in the repository, this means the resulting jar file will be named target/jdee-bundle-1.0-SNAPSHOT.jar . 根据存储库中的README文件,这意味着生成的jar文件将命名为target/jdee-bundle-1.0-SNAPSHOT.jar But when you build jdee-server following its README instructions, you'll get two jar files: 但是当你按照README指令构建jdee-server ,你会得到两个jar文件:

target/jdee-1.0-SNAPSHOT.jar
target/jdee-bundle-1.0-SNAPSHOT.jar-jar-with-dependencies.jar

Copy both files to a directory of your choosing, then in your emacs startup file set jdee-server-dir to the name of that directory. 将这两个文件复制到您选择的目录中,然后在您的emacs启动文件中将jdee-server-dir设置jdee-server-dir的名称。 For example, if the directory you choose is /home/ttong/jdee-server , set jdee-server-dir like this: 例如,如果您选择的目录是/home/ttong/jdee-server ,请设置jdee-server-dir如下所示:

(setq jdee-server-dir "/home/ttong/jdee-server")

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM