JDE Troubleshooting Guide

The following describes common problems using the JDE and their solutions.

Problem: On Emacs startup, Emacs signals some error.

Problem: On Emacs startup, this message appears:
Solution: Download the latest version of cc-mode (5.20 or greater) and compile all the .el files in the cc-mode distribution. When compiling the cc-mode files, please be sure to follow exactly the compilation instructions given in the readme file that accompanies the cc-mode distribution.
Problem: I installed the latest version of cc-mode and now I cannot indent a line by pressing the TAB key. In fact, when I edit a .c or .java file and hit tab, I get  :
"Invalid function: (macro . #[(cond &rest body) "\300    \302^KBE\207"
[if cond progn body] 4 ("c:/mcarland/lisp/cc-mode-5.20/cc-mode-19.elc" .
1007)])"

Martin Stjernholm <mast@lysator.liu.se> reports that CC Mode 5.20 doesn't byte compile correctly under Emacs 19.34, because the compatibility macros in cc-mode-19.el aren't require'd prior tocompilation. The patch below fixes this. There will be a bugfix release out soon too.

--- cc-make.el  1997/10/03 15:13:31     5.12
+++ cc-make.el  1998/02/10 22:48:57     5.13
@@ -20,7 +20,15 @@
           (error nil))
         ;; Stock Emacs 19.34 doesn't have this
         (fboundp 'defcustom))
-    (batch-byte-compile)
+    (progn
+      (if (or (not (fboundp 'functionp))
+             (not (fboundp 'char-before))
+             (not (c-safe (char-after) t))
+             (not (fboundp 'when))
+             (not (fboundp 'unless)))
+         ;; cc-mode-19.el contains macros that should be compiled in.
+         (require 'cc-mode-19))
+      (batch-byte-compile))
   (error "STOP! STOP! STOP! STOP!
 
The Custom library was not found or is out of date.  A more current

Solution: Martin suggests the easiest way to fix  this problem is to use the following command to byte-compile the cc-mode files:

emacs -batch -no-site-file -q -l cc-mode-19.el -l cc-make.el cc-*.el
                              ^^^^^^^^^^^^^^^^ add this
 
 

Problem: On Emacs startup, I get the following message:
Error in initfile: Symbol's value as variable is void:
font-lock-defaults-alist
Solution: Put the following statements
(require 'font-lock)
(require 'jde)
in your .emacs file. The next release of the JDE will require font-lock to avoid this problem.
Problem: On startup of XEmacs 20.2, I get the following error message
Unknown keyword
speedbar-ignored-path-expressions
Solution: Use load-file instead of require to force loading of the 1.9961 version of custom, e.g., put the following in your .emacs file
;;(require 'custom)
(load-file (expand-file-name "~/custom-1.9961/custom.elc"))
Apparently the version of custom distributed with XEmacs 20.2 is broken in some way.
Problem: On startup or when compiling jde.el, NT/Emacs 19.34.6 signals: Problem: On startup or when compiling jde.el, NT/Emacs 19.34.6 signals: Problem: I cannot get w3 to display the JDE User's Guide (jde.htm) from the JDE 1.9.4 Help menu.  
Problem: On Windows 95, when I select Browse JDK Doc or Help, the browser opens and loads the
required document,  but the Emacs window stops responding until I exit the browser.

Solution:  Change the definition of shell-execute-url in your .emacs file to read as follows

 
Problem:  I would like to change the default value of the cc-mode customization variable c-basic-offset for use with JDE - but alas, I've had no luck
in doing so.No matter what I've attempted, editing a Java source file always ends up with the original value of 4 rather than the value of 2 that I've
specified.  
Problem:  When I select  JDE -> Options -> Debug, the minibuffer displays the error: No matches.

Problem: I start the debugger but  the Jdb menu does not appear on the Emacs menu bar as pictured in the user's guide.

Problem: I am using the JDE with NT/Emacs 20.2.x. When I run a Java application with a GUI, the application starts but nothing appears.

 
 
 
 
 
 

 
 
 

 
 
 

 
 
  1