jdee配置问题

Vim、Emacs配置和使用
回复
yangstone
帖子: 28
注册时间: 2007-10-19 18:29

jdee配置问题

#1

帖子 yangstone » 2011-01-30 12:47

sudo apt-get install jdk
安装了JDEE,但是在emacs的java-mode下编译的时候出现:
Cannot find JDK's tools jar file (or equivalent). Type M-x describe-function [RET] jde-get-jdk-dir for more info

我理解的是 jde现在不知道jdk文件夹在哪里,这个jde文件夹,我认为就是
/usr/share/emacs/23.1/site-lisp/java
这个文件夹,但是emacs不知道,

不知道自己的理解对不对,然后希望版上的各位能提供帮助,谢谢。

貌似这个东西要在jde.el中更改JAVA_HOME和JAVA_VERSION两个变量。
yangstone
帖子: 28
注册时间: 2007-10-19 18:29

Re: jdee配置问题

#2

帖子 yangstone » 2011-02-03 14:12

没人回答,我自己在顶
yangstone
帖子: 28
注册时间: 2007-10-19 18:29

Re: jdee配置问题

#3

帖子 yangstone » 2011-02-05 10:32

:em20 :em20 :em20
头像
hongmomanu
帖子: 20
注册时间: 2010-12-31 12:46
联系:

Re: jdee配置问题

#4

帖子 hongmomanu » 2011-02-12 11:49

在终端中输入 $JAVA_HOME,看有值不,没值请赋值。
要怀着一颗感恩的心,坚强的活下去!
cuiaoxiang
帖子: 62
注册时间: 2010-02-01 19:08

Re: jdee配置问题

#5

帖子 cuiaoxiang » 2011-02-26 12:01

M-x customize-variable RET jde-compiler RET
jde 默认的是 javac server,你选择成 javac 就行了,全局保存,然后在 .emacs 最后有对应的修改,你把修改的那行 elisp 代码提取出来,
其他的都可以扔掉了。

不过,我没有用它的那套编译,我自己搞了自己的一个 smart-compile 函数,编译 C/C++, java, 等等
God grant me the serenity to accept the things I cannot change
the courage to change the things I can
the wisdom know the difference
回复