Menu

#23 Location of classes.jar

closed-fixed
nobody
Beanshell (3)
5
2011-06-10
2010-10-10
Anonymous
No

Assuming your darwin/mac os env is ...

JAVA_VERSION=1.6.0
JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home

... then the classes.jar file is not in Classes, but in ../Classes.

Suggested fix is below.

---

from jde.el

<snip>

(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))))
(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.")))))

Discussion

  • Len Trigg

    Len Trigg - 2011-06-10
    • status: open --> open-fixed
     
  • Len Trigg

    Len Trigg - 2011-06-10
    • status: open-fixed --> closed-fixed
     

Log in to post a comment.