Hello everyone,
I am having trouble installing jde 2.2.8. The message I get when
I type "xemacs joe.java" is
File mode specification error: (file-error "Cannot open load file"
"semantic-load")
I am using XEmacs 21.1 on a RedHat 7.0 system. I have installed
all of the required libraries under /usr/local/elisp as follows:
eieio-0.16
elib-1.0
jde-2.2.8
semantic-1.3.3
speedbar-0.12
In each of these directories (for jde, under the lisp subdir) I have
edited the Makefile so $(EMACS) = xemacs rather than emacs and then
run "make". Most times, make seemed to produce many error messages,
but always continued to run until .elc files were produced for each
.el file in the directory.
My .emacs file is very simple:
(global-set-key "\C-h" 'delete-backward-char)
(setq line-number-mode t)
(setq column-number-mode t)
;; 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.
(add-to-list 'load-path (expand-file-name "/usr/local/elisp/jde-2.2.8/lisp"))
(add-to-list 'load-path (expand-file-name "/usr/local/elisp/semantic-1.3.3"))
(add-to-list 'load-path (expand-file-name "/usr/local/elisp/speedbar-0.12"))
(add-to-list 'load-path (expand-file-name "/usr/local/elisp/eieio-0.16"))
(add-to-list 'load-path (expand-file-name "/usr/local/elisp/elib-1.0"))
;; If you want Emacs to defer loading the JDE until you open a
;; Java file, edit the following line
;; (setq defer-loading-jde nil)
;; to read:
;;
(setq defer-loading-jde t)
;;
(if defer-loading-jde
(progn
(autoload 'jde-mode "jde" "JDE mode." t)
(setq auto-mode-alist
(append
'(("\\.java\\'" . jde-mode))
auto-mode-alist)))
(require 'jde))
;; Sets the basic indentation for Java source files
;; to two spaces.
(defun my-jde-mode-hook ()
(setq c-basic-offset 2))
(add-hook 'jde-mode-hook 'my-jde-mode-hook)
;; Include the following only if you want to run
;; bash as your shell.
;; Setup Emacs to run bash as its primary shell.
(setq shell-file-name "bash")
(setq shell-command-switch "-c")
(setq explicit-shell-file-name shell-file-name)
(setenv "SHELL" shell-file-name)
(setq explicit-sh-args '("-login" "-i"))
(defun mutt-entry ()
(interactive)
(goto-char (point-min))
(when (search-forward-regexp "^[ \t]*$" nil t)
(insert "\n\n")))
(defun mutt-find-file-hook ()
(when (string-match "^mutt-" (file-name-nondirectory (buffer-file-name)))
(indented-text-mode)
(turn-on-auto-fill)
))
(add-hook 'find-file-hooks 'mutt-find-file-hook)
Does anyone have a clue? I used to run JDE-2.0.8 with no problems,
and am finding myself very frustrated here....
Thanks,
Richard