【问题标题】:Trouble installing jdee in Carbon Emacs in Snow Leopard在 Snow Leopard 的 Carbon Emacs 中安装 jdee 时遇到问题
【发布时间】:2009-12-05 11:36:35
【问题描述】:

我最近决定尝试使用 emacs 进行 java 开发,所以这是我第一次使用 emacs。我在 emacs 启动时没有收到任何错误,但我认为 jde 安装不正确,因为在查看 java 文件时我没有看到“jde”菜单项。有关如何进一步排除故障的任何建议?

我下载并解压了cedet、jde和elib到以下目录结构:

~/.emacs.d/site/cedet/latest
~/.emacs.d/site/jde/latest
~/.emacs.d/stie/elib/latest

在每种情况下,“最新”都是指向版本化目录的符号链接,例如:

cd ~/.emacs.d/site/cedet
ls -al
drwxr-xr-x@ 17 dparoulek  staff  578 Dec  4 12:17 cedet-1.0pre6
lrwxr-xr-x   1 dparoulek  staff   14 Dec  4 21:41 latest -> cedet-1.0pre6/

这是我的 .emacs 文件:

; JDE - Java Development Environment

;; Set the debug option to enable a backtrace when a
;; problem occurs.
(setq debug-on-error t)

;; Update the Emacs load-path to include the path to
;; the JDE and its require packages. This code assumes
;; that you have installed the packages in the emacs/site
;; subdirectory of your home directory.
(add-to-list 'load-path (expand-file-name "~/.emacs.d/site/jde/latest/lisp"))
(add-to-list 'load-path (expand-file-name "~/.emacs.d/site/cedet/latest/common"))
(load-file (expand-file-name "~/.emacs.d/site/cedet/latest/common/cedet.el"))
(add-to-list 'load-path (expand-file-name "~/.emacs.d/site/elib/latest"))

(require 'jde)

【问题讨论】:

    标签: emacs jde


    【解决方案1】:

    我发现 emacs 将启动日志消息写入 Messages 缓冲区。一旦我发现了这一点,我意识到当它尝试加载我的 .emacs 文件中定义的一些东西时会出现一些问题。

    我能够让 cedet 和 ecb 成功工作,但在尝试加载 jde 时仍然出现 lisp 错误。

    【讨论】:

      猜你喜欢
      • 2010-12-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-08-01
      • 2011-07-13
      • 2010-12-26
      相关资源
      最近更新 更多