Ryan Senior writes: > Hello, > > I am using GNU Emacs 21.3.1 ( the one distributed with Fedora Core 1) > and JDE 2.3.3. I am able to load JDE automatically when I open the > first Java source file. The text is highlighted like it is supposed to > be, and everything seems to be fine. However when I load a second .java > file, the second file does not have it's syntax highlighted, and I don't > think that the entire JDE has been loaded either. Also after the second > java file has been loaded the following appears in the modeline: > > Wrong type argument stringp, nil > > > I'm still new to Emacs and JDE so it's probably a configuration problem > on my end, however I can't figure out what the problem is. > > > > Here is what *Messages* says when I open another .java file: > > Setting JDE variables to startup values... [2 times] > wisent-java-tags-lexer: > Wrong type argument: stringp, nil >
JDEE 2.3.3 is incompatible with semantic 2.0. The next release of the JDEE, to be issued shortly, will support semantic 2.0. Meanwhile, I suggest that you use semantic 1.4. Paul > > > Here is my .emacs file (which is mostly based off of the basic .emacs > listed on the jde site -> http://jdee.sunsite.dk/_emacs_jde) > > ;; turn on font-lock mode > (global-font-lock-mode t) > > ;; enable visual feedback on selections > (setq transient-mark-mode t) > > ;; Set the debug option to enable a backtrace when a > ;; problem occurs. > (setq debug-on-error t) > > ;;set bell to visible (no annoying beep) > (setq visible-bell 1) > > > (add-to-list 'load-path (expand-file-name "~/emacs/site/jde/lisp")) > (add-to-list 'load-path (expand-file-name "~/emacs/site/cedet-common")) > (add-to-list 'load-path (expand-file-name "~/emacs/site/semantic")) > (add-to-list 'load-path (expand-file-name "~/emacs/site/speedbar")) > (add-to-list 'load-path (expand-file-name "~/emacs/site/eieio")) > (add-to-list 'load-path (expand-file-name "~/emacs/site/elib")) > (add-to-list 'load-path (expand-file-name "~/emacs/site/erc")) > (add-to-list 'load-path (expand-file-name "~/emacs/site")) > > (setq defer-loading-jde nil) > > (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)) > > (require 'tabbar) > (require 'erc) > > (defun my-jde-mode-hook () > (setq c-basic-offset 2)) > > (add-hook 'jde-mode-hook 'my-jde-mode-hook) > (add-hook 'jde-mode-hook 'tabbar-mode) > > > ;; 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")) > > > > > Thanks for the help! > > -Ryan >
