Hi Andi,

I've applied your patch to the JDEE sources. I'm concerned that
it may be specific to your build of Emacs or to your installation.

So if there is a more general solution and you or anyone else wants
to provide it, I'd be happy to apply it to the JDE.

Also, I'd appreciate it if somebody would take a look at the JDEE's
installation instructions on the JDEE website and provide me with
a section for intalling the JDEE on the Macintosh parallel to those
for Unix and Windows.

- Paul

Andi Vajda writes:
 > 
 >  Hi Paul,
 > 
 > Thanks for a great emacs package !
 > 
 > I just managed to get the JDE installed on Mac OS X 10.1.2 with emacs compiled
 > out of CVS with the carbon extensions as described at
 >     http://members.shaw.ca/akochoi-emacs/
 > (the emacs shipped with OS X is tty only)
 > 
 > There are some part in the JDE .el code that don't apply well on OS X, namely,
 > the assumptions made about the JDK install structure don't hold. The Apple
 > java directory tree is very different from all other installations I know
 > of. Also there is no tools.jar, these classes are part of classes.jar, the
 > main jar file on OS X.
 > 
 > Here are some diffs that fix these. I generated them with diff -p against the
 > sources in jde-2.2.9beta12. Only two files changed beanshell.el and
 > jde-run.el.
 > 
 > *** beanshell.el     Mon Oct 28 16:16:07 2002
 > --- /Users/vajda/tmp/jde-2.2.9beta12/lisp/beanshell.el       Tue Sep 10 21:29:18 2002
 > *************** buffer."
 > *** 104,115 ****
 >                 (append
 >                  (list
 >                   (expand-file-name "bsh-commands" jde-java-directory)
 > !                 (unless (eq system-type 'darwin)
 > !                   (let ((tools
 > !                          (expand-file-name "lib/tools.jar" (jde-get-jdk-dir))))
 > !                     (if (file-exists-p tools)
 > !                         tools
 > !                       (error "Cannot find JDK's tools jar file. See 
 >jde-get-jdk-dir."))))
 >                   (if ant-home (expand-file-name "lib/ant.jar" ant-home))
 >                   (expand-file-name "lib/checkstyle-all.jar" jde-java-directory)
 >                   (expand-file-name "lib/jakarta-regexp.jar" jde-java-directory)
 > --- 104,114 ----
 >                 (append
 >                  (list
 >                   (expand-file-name "bsh-commands" jde-java-directory)
 > !                 (let ((tools
 > !                        (expand-file-name "lib/tools.jar" (jde-get-jdk-dir))))
 > !                   (if (file-exists-p tools)
 > !                       tools
 > !                     (error "Cannot find JDK's tools jar file. See 
 >jde-get-jdk-dir.")))
 >                   (if ant-home (expand-file-name "lib/ant.jar" ant-home))
 >                   (expand-file-name "lib/checkstyle-all.jar" jde-java-directory)
 >                   (expand-file-name "lib/jakarta-regexp.jar" jde-java-directory)
 > 
 > *** jde-run.el       Mon Oct 28 15:38:28 2002
 > --- /Users/vajda/tmp/jde-2.2.9beta12/lisp/jde-run.el Tue Sep 10 19:24:54 2002
 > *************** source buffer belongs."
 > *** 681,698 ****
 >              (let ((jdk-dir (jde-get-jdk-dir)))
 >                (if jdk-dir
 >                    (progn
 > !                    (cond ((eq system-type 'darwin)
 > !                           (setq vm-path "/usr/bin/java"))
 > !                          (t (setq vm-path
 > !                                   (expand-file-name
 > !                                    (if (eq system-type 'windows-nt)
 > !                                        "bin/javaw.exe"
 > !                                      "bin/java")
 > !                                    jdk-dir))))
 > !                    (if (file-exists-p vm-path)
 > !                        vm-path
 > !                      (error (format "Invalid vm path %s"
 > !                                     vm-path))))
 >                     (if (executable-find "java")
 >                         (if (eq system-type 'windows-nt) "javaw" "java")
 >                       (error "Cannot find a Java vm."))))
 > --- 681,696 ----
 >              (let ((jdk-dir (jde-get-jdk-dir)))
 >                (if jdk-dir
 >                    (progn
 > !                     (setq vm-path
 > !                           (expand-file-name
 > !                            (if (eq system-type 'windows-nt)
 > !                                "bin/javaw.exe"
 > !                              "bin/java")
 > !                            jdk-dir))
 > !                     (if (file-exists-p vm-path)
 > !                         vm-path
 > !                       (error (format "Invalid vm path %s"
 > !                                      vm-path))))
 >                     (if (executable-find "java")
 >                         (if (eq system-type 'windows-nt) "javaw" "java")
 >                       (error "Cannot find a Java vm."))))
 > 
 > 
 > I also learned that the JDE will work a LOT better
 > if the JDE .emacs setup is as follows (delaying JDE load):
 > 
 >     ;;jde (takes care of loading speedbar, eieio, semantic)
 >     (setq defer-loading-jde t)
 >     (if defer-loading-jde
 >         (progn
 >           (autoload 'jde-mode "jde" "JDE mode." t)
 >           (setq jde-import-auto-sort t)
 >           (global-set-key "\C-c\C-v\C-o" 'jde-open-class-source)
 >           (setq auto-mode-alist
 >          (append '(("\\.java\\'" . jde-mode))
 >                  auto-mode-alist)))
 >       (require 'jde))
 > 
 > 
 > Voila !
 > Thanks for a great package !
 > 
 > Andi..
 > 
 > 

Reply via email to