Hello!

I am just trying to set up JDE but can't get it running.

I am always getting the startup error 'Invalid read syntax: "#"' and
can't see JDE, e.g. after loading some .java file.

I tried the following .emacs file (derived from
http://sunsite.auc.dk/jde/install.html 's suggested minimal .emacs
file): see below.

I also tried my own .emacs file with the four "add-to-list" lines and
the "(require 'jde)" line added. Just the same result. Apparently, if I
remove the (add-to-list 'load-path
"/usr/X11R6/lib/xemacs-20.4/lisp/jde/lisp") and the (require 'jde)
calls, everything loads perfectly and I can run the speedbar. So it
seems that there is something wrong with the jde code.

I am using Xemacs 20.4 (without any jde preinstalled, I checked), SUSE
Linux 6.2 (Kernel 2.2.10), speedbar-0.13beta2 (tried speedbar-0.12 also,
removed the preinstalled speedbar files), semantic-1.2.1 and jde-2.2.4.

Any help would be appreciated! Please cc: to me!

Regards,

Hans


;; This .emacs file illustrates the minimul setup
;; required to run the JDE.

;; 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/site/jde-2.1.9/lisp"))
;(add-to-list 'load-path (expand-file-name "~/emacs/site/semantic-1.2"))
;(add-to-list 'load-path (expand-file-name
"~/emacs/site/speedbar-0.11"))
;(add-to-list 'load-path (expand-file-name "~/emacs/site/elib"))
(add-to-list 'load-path "/usr/X11R6/lib/xemacs-20.4/lisp/jde/lisp")
(add-to-list 'load-path "/usr/X11R6/lib/xemacs-20.4/lisp/semantic")
(add-to-list 'load-path "/usr/X11R6/lib/xemacs-20.4/lisp/speedbar")
(add-to-list 'load-path "/usr/X11R6/lib/xemacs-20.4/lisp/elib")


;; 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"))
;(if (boundp 'w32-quote-process-args)
;  (setq w32-quote-process-args ?\")) ;; Include only for MS Windows.
 

___________________________
Hans Schlenker
http://www.first.gmd.de/~hs

Reply via email to