David Cabana <[EMAIL PROTECTED]> writes:
> Hello,
> I've spent several hours trying to install JDE with no luck. Here are the
> facts
>
> OS: Windows NT 4.0 Workstation, service pack 5
> Emacs version: GNU Emacs 20.6.1 (i386-*nt4.0.1381)
> JDE version: 2.1.6 beta21 (also tried 2.1.5, same lack of
> results)
>
> HOME directory: D:\Home
> JDE location D:\Home\emacs\site\jde-2.1.6beta21
So far, so good.
> .emacs file D:\Home\.emacs.txt
>
> I tried to rename the .emacs.txt file to .emacs but Windows insisted that
> the file must have a type.
? No, Windows doesn't do that. How were you trying to rename the file? You
can use Emacs or the Explorer to set the name.
Alternative filenames include _emacs or .emacs.el.
> The complete contents of .emacs file:
>
> ;; This .emacs file illustrates the minimal setup
> ;; required to run the JDE.
>
> ;; Update the Emacs load-path to include the path to
> ;; the JDE. This code assumes that you have installed
> ;; the JDE in the specified subdirectory of your home
> ;; directory.
> (setq load-path
> (nconc
> '("~/emacs/site/jde-2.1.6beta21/lisp")
> load-path))
Ugh. Minor point, but nconc is a dangerous function for newbies. I realize
that you got this from the JDE page. Better ways to do the same thing (IMO):
(setq load-path
(cons "~/emacs/site/jde-2.1.6beta21/lisp" load-path))
or
(add-to-list 'load-path "~/emacs/site/jde-2.1.6beta21/lisp")
> ;; Tell Emacs to load the entire JDE package at startup (only once).
> (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)
Looks OK.
> I based this file on examples from the JDE website. I recently started using
> Emacs simply to try out JDE, and so do not have an extensive set of
> customizations.
>
> Emacs runs just fine, but so far as I can tell, the JDE does not load. The
> test I have tried is switching Emacs into java mode and looking for the JDE
> menu. It does not appear. Is this an appropriate test? If not, what is?
To get the JDE, you need to be in jde-mode. You can do that with:
M-x jde-mode
Or, you can set your auto-mode-alist to do it automatically.
Once there, you should see the jde menu.
--
Jim Davidson
jdavidso @ csi.com