>>>>> "Paul" == Paul Landes <landes@...> writes:

    Paul> I suggest using the latest trunk with cedet 1.1 and working
    Paul> out the jde-get-tools-jar issue.  A patch would be nice so
    Paul> others can have a smooth transition to 24.  Thanks Shyamal.

    Paul> On Sep 13, 2012, at 1:08 AM, Shyamal Prasad <shyamal@...> wrote:

    >> I tried on Mac OS with the MacPorts emacs (24.2.1) and it seems
    >> that CEDET 1.0 no longer works, CEDET 1.1 compiles but then it
    >> flunks out with a jde-get-tools-jar problem. 


Hi Paul,

CEDET 1.1 works great with Emacs 24.2.1 on my Mac. I've also using it
with Emacs 23.4.1 on my Linux box with no trouble. I would recommend
upping jde-cedet-max-version.

The jde-get-tools-jar problem is easily solved on the Mac given Apple's
guide to Mac OS X Java packaging:
https://developer.apple.com/library/mac/#qa/qa2001/qa1170.html 

The enclosed patch fixes both issues (it can also be seen at
https://github.com/shyamalprasad/jdee/commit/51604758af9fc9984618260953f02dc7d6a325c1
for those so inclined).

I particularly like the Mac fix because JDE now finds the default JDK
with absolutely no configuration required.

Cheers!
Shyamal

diff --git a/jdee/lisp/jde.el b/jdee/lisp/jde.el
index 8220036..9376f3e 100644
--- a/jdee/lisp/jde.el
+++ b/jdee/lisp/jde.el
@@ -40,7 +40,7 @@
 
 (defconst jde-cedet-min-version "1.0beta2"
   "Cedet minimum version")
-(defconst jde-cedet-max-version "1.0"
+(defconst jde-cedet-max-version "1.1"
   "Cedet maximum version")
 
 (defconst jde-xemacsp (string-match "XEmacs" (emacs-version))
@@ -361,7 +361,12 @@ function displays an error message."
                 (format "The path specified by %s does not exist: %s"
                         (nth 1 jde-java-environment-variables)
                         jdk-dir))))
-       (progn
+       (if (and (eq system-type 'darwin)
+                (file-executable-p "/usr/libexec/java_home"))
+           ;; Mac OS X 10.5 and later Java packaging 
+           (setq jdk-dir 
+                 (substring (shell-command-to-string "/usr/libexec/java_home")
+                            0 -1))
          (setq jdk-dir
                (executable-find "javac"))
          (if jdk-dir
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
jdee-users mailing list
jdee-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jdee-users

Reply via email to