I'm having problems loading JDE.
The message error in Emacs is:
Error in init file: File Error: "Cannot open load file", "semantic
load"
My environment is:
Linux
Emacs 20.7
JDE 2.0
The structure of JDE tree directory is:
/usr/share/site
|-----eieio
|-----elib
|-----jde
|-----semantic
|-----speedbar (Had problems in the compilation)
The content of my .emacs is:
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Linux-Mandrake Configuration
; Chmouel Boudjnah <[EMAIL PROTECTED]>.
; Thanks to Eric Marsden <[EMAIL PROTECTED]>.
;; Some macros.
(defmacro GNUEmacs (&rest x)
(list 'if (string-match "GNU Emacs 20" (version)) (cons 'progn x)))
(defmacro XEmacs (&rest x)
(list 'if (string-match "XEmacs 20" (version)) (cons 'progn x)))
(defmacro Xlaunch (&rest x)
(list 'if (eq window-system 'x)(cons 'progn x)))
(GNUEmacs
(Xlaunch
(define-key global-map [(delete)] "\C-d")
))
(XEmacs
(if (eq window-system 'x)
(global-set-key (read-kbd-macro "DEL") 'delete-char)
(or (global-set-key "^[[3~" 'delete-char))
))
;; By default we starting in text mode.
(setq initial-major-mode
(lambda ()
(text-mode)
(turn-on-auto-fill)
(font-lock-mode)
))
;; Accents
(GNUEmacs
(set-input-mode nil nil t))
; Some new Colors for Font-lock.
(setq font-lock-mode-maximum-decoration t)
(require 'font-lock)
(setq font-lock-use-default-fonts nil)
(setq font-lock-use-default-colors nil)
(copy-face 'default 'font-lock-string-face)
(set-face-foreground 'font-lock-string-face "yellow")
(copy-face 'italic 'font-lock-comment-face)
(set-face-foreground 'font-lock-comment-face "Red")
(copy-face 'bold 'font-lock-function-name-face)
(set-face-foreground 'font-lock-function-name-face "Coral")
(copy-face 'default 'font-lock-keyword-face)
(set-face-foreground 'font-lock-keyword-face "Turquoise")
(copy-face 'default 'font-lock-type-face)
(set-face-foreground 'font-lock-type-face "gray")
(GNUEmacs (set-face-foreground 'modeline "red")
(set-face-background 'modeline "lemonchiffon"))
(GNUEmacs
(setq transient-mark-mode 't)
)
(XEmacs
(set-face-foreground 'bold-italic "Blue")
)
(GNUEmacs
(Xlaunch
(make-face-bold 'bold-italic)
))
(set-face-foreground 'bold-italic "Blue")
(setq default-frame-alist
'(
;;; Define here the default geometry or via ~/.Xdefaults.
; (width . 200) (height . 100)
(cursor-color . "red")
(cursor-type . box)
(foreground-color . "white")
(background-color . "black")))
;; A small exemples to show how Emacs is powerfull.
; Define function to match a parenthesis otherwise insert a %
(global-set-key "%" 'match-paren)
(defun match-paren (arg)
"Go to the matching parenthesis if on parenthesis otherwise insert %."
(interactive "p")
(cond ((looking-at "\\s\(") (forward-list 1) (backward-char 1))
((looking-at "\\s\)") (forward-char 1) (backward-list 1))
(t (self-insert-command (or arg 1)))))
;; By default turn on colorization.
(if (fboundp 'global-font-lock-mode)
(global-font-lock-mode t)
)
;; More information with the info file (Control-h i)
;; Additions by eesr
(setq tex-dvi-view-command "kdvi -f *")
(custom-set-variables
'(printer-name "lp" t))
(custom-set-faces
'(font-lock-comment-face ((t (:foreground "pink"))))
'(custom-face-tag-face ((t (:underline t))))
'(font-lock-variable-name-face ((((class color) (background light))
(:foreground "light blue")))))
;;XML module
;;(add-to-list 'load-path (expand-file-name
"/usr/share/emacs/20.7/xae-1.0beta6/lisp"))
;; (require 'xae)
;; Set the debug option to enable a backtrace when a
;; problem occurs.
(setq debug-on-error t)
;; JDE module for Java
(add-to-list 'load-path (expand-file-name
"/usr/share/emacs/site/jde/lisp"))
(add-to-list 'load-path (expand-file-name
"/usr/share/emacs/site/semantic"))
(add-to-list 'load-path (expand-file-name
"/usr/share/emacs/site/speedbar"))
(add-to-list 'load-path (expand-file-name "/usr/share/emacs/site/elib"))
(add-to-list 'load-path (expand-file-name
"/usr/share/emacs/site/eieio"))
;; ensure that the JDE is loaded
(require 'jde)
;; 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"))
;; END OF .emacs
I'd really apreciate some help to solve the problem.
Thanks in advance;
Adriano.