在 Snow Leopard 的 Carbon Emacs 中安装 jdee 时遇到问题

发布于 2024-08-13 18:37:04 字数 1238 浏览 5 评论 0原文

我最近决定尝试使用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)

I recently decided to try emacs for java development, so this is the first time I've used emacs. I'm not getting any error on emacs startup, but I don't think jde is installed correctly because I don't see a "jde" menu item when viewing java files. Any suggestions on how I can troubleshoot further?

I downloaded and extracted cedet, jde, and elib into the following dir structure:

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

In each case 'latest' is a symlink to a versioned dir, for example:

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/

Here's my .emacs file:

; 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)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

仅此而已 2024-08-20 18:37:04

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

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

I figured out that emacs writes start-up log messages to a Messages buffer. Once I found that, I realized that there are some problems when it tries to load some things defined in my .emacs file.

I was able to get cedet and ecb working successfully but still getting lisp errors when trying to load jde.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文