Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#28 Mac OS X JDK classes.jar location

v1.0 (example)
closed-fixed
nobody
None
5
2013-06-19
2013-03-31
Anonymous
No

Location of classes.jar - ID: 3084766
After since JDK 1.7, Oracle provides the JDK for the Mac OS X and the location of tools.jar is just like in other OSes.
So I suggest the fix of jde.el.

(defun jde-get-tools-jar ()
"Gets the correct tools.jar or equivalent. Signals an
error if it cannot find the jar."
(let ((tools
(expand-file-name
(if (eq system-type 'darwin)
"../Classes/classes.jar"
"lib/tools.jar")
(jde-get-jdk-dir))))
;; for jdk 1.7 and above in MacOS X, try once again
(if (not (file-exists-p tools))
(setq tools
(expand-file-name
"lib/tools.jar" (jde-get-jdk-dir)))
)
(if (file-exists-p tools)
tools
(error (concat "Cannot find JDK's tools jar file (or equivalent)."
"Type M-x describe-function [RET] jde-get-jdk-dir for more info."
tools)))))

Discussion

  • Shyamal Prasad
    Shyamal Prasad
    2013-06-19

    • status: open --> closed-fixed
    • Group: --> v1.0 (example)
     
  • Shyamal Prasad
    Shyamal Prasad
    2013-06-19

    Thank you for the report and patch!

    This issue was resolved in r266 in a slightly different manner and is included in the 2.4.1 release.