简体   繁体   English

无法在emacs中安装jdee和cedet

[英]trouble installing jdee and cedet in emacs

I'm not sure what's going wrong here and I'm failry new to emacs in general... I started with trying to install JDEE (downloaded it, extracted into directory below) into emacs with this code 我不确定这里出了什么问题,而且我一般对emacs都不满意...我首先尝试使用此代码将JDEE(下载,下载到下面的目录中)安装到emacs中

(add-to-list 'load-path "~/.emacs.d/internet/jdee-2.4.1/lisp")
(load "jde")

in my.emacs file and I was getting the error "Cannot find wget. You might want to use the beanshell resolver instead." 在my.emacs文件中,出现错误“找不到wget。您可能想改用beanshell解析器。” upon Mx eval-buffer 在Mx评估缓冲区

I'm not sure what's going on there since I have wget with xcode on my mac. 我不确定发生了什么事,因为我在Mac上使用xcode进行了wget的安装。 But I looked up about jdee and i found that i might want cedet. 但是我抬头看看jdee,发现我可能想要cedet。 So I download that, put it into .emacs.d and even add 所以我下载了它,将其放入.emacs.d甚至添加了

(add-to-list 'load-path "~/Users/paulmyers/.emacs.d/internet/cedet-1.1/cedet-build.el")

to my .emacs but whenever I run 到我的.emacs,但每当我运行时

emacs -Q -l cedet-build.el -f cedet-build

from my terminal like it tells me to, I get the message 从我的终端告诉我,我收到消息

"Cannot open load file: no such directory, cedet-build.el"

I don't know what to do at this point... 我目前不知道该怎么办...

Be sure CEDET works well before trying jdee. 在尝试jdee之前,请确保CEDET正常运行。 Get the last CEDET http://sourceforge.net/p/cedet/git/ci/master/tree/ and the last jdee http://sourceforge.net/p/cedet/git/ci/master/tree/ . 获取最后一个CEDET http://sourceforge.net/p/cedet/git/ci/master/tree/和最后一个jdee http://sourceforge.net/p/cedet/git/ci/master/tree/

Here my cedet conf (at the beginning of your .emacs): 这是我的cedet conf(在.emacs开头):

 (ignore-errors ;; for cedet reload
    (load-file "~/.emacs.d/cedet-git-master/cedet-devel-load.elc")
    (load-file "~/.emacs.d/cedet-git-master/cedet-contrib-load.elc"))
  (global-ede-mode 1)
  (add-to-list 'semantic-default-submodes 'global-semanticdb-minor-mode 1)
  (add-to-list 'semantic-default-submodes 'global-semantic-idle-scheduler-mode 1)
  (add-to-list 'semantic-default-submodes 'global-semantic-stickyfunc-mode 1)
  (add-to-list 'semantic-default-submodes 'global-semantic-highlight-func-mode 1)
  (add-to-list 'semantic-default-submodes 'global-semantic-idle-summary-mode t)
  (add-to-list 'semantic-default-submodes 'global-semantic-idle-completions-mode t)
  (add-to-list 'semantic-default-submodes 'global-srecode-minor-mode t)
  (semantic-mode) 

And my jdee conf 和我的jdee conf

(add-to-list 'load-path "~/.emacs.d/jdee/jdee-master") 
(autoload 'jdee-mode "jdee" "" t)   
(setq auto-mode-alist (append '(("\\.java\\'" . jdee-mode)) auto-mode-alist))  
 (setq jde-complete-add-space-after-method t)  
 (setq jdee-server-dir "~/.emacs.d/jdee/jdee-server-master/target/")  
 (add-hook 'jdee-mode-hook 
            (lambda()
              ;; abbrev
              ;;(jdee-abbrev-mode)
              ;; autocomplete
              (add-to-list 'ac-modes 'jdee-mode)))

Then use Mx custumize-group jdee for JAVA variables (JAVA_HOME, CLASSPATH...) 然后将Mx custumize-group jdee用于JAVA变量(JAVA_HOME,CLASSPATH ...)

Regarding JDEE, in your place I would install in from MELPA using emacs package manager. 关于JDEE,在您的位置,我将使用emacs软件包管理器从MELPA安装。 This is the recommended way to install it. 这是推荐的安装方式。

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

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