*RETRACT*

sorry for bothering you -- i found the difference -- i had micro-version 17 in the JDK registry but my JDK is micro-version 25.  That's what you get from working in open environments with people talking all the time all around you -- loss of focus on micro details :)

apologies again


On Tue, Aug 13, 2013 at 7:05 AM, Brian Beckman <bc.beckman@gmail.com> wrote:
Hello -- I just found and installed JDEE according to the instructions here: http://jdee.sourceforge.net. I have a working JDK environment when I call it from the command line (in a terminal, *or* in an emacs *shell* buffer). 

After installing JDEE, customizing the variables jde-jdk-registry and jde-jdk as described in the JDE documents, and then trying jde-compile on a "HelloWorld.java" buffer, I first get

"The JDE does not recognize JDK 1.7 javac. Assume JDK 1.6 javac? (y or n)"

This is bad. I only have a JDK 1.7 to the best of my knowledge 

bash-3.2$ javac -version
javac 1.7.0_25
bash-3.2$ java -version
java version "1.7.0_25"
Java(TM) SE Runtime Environment (build 1.7.0_25-b15)
Java HotSpot(TM) 64-Bit Server VM (build 23.25-b01, mixed mode)

$ ls -la /Library/Java/JavaVirtualMachines/jdk1.7.0_25.jdk/Contents/Home/
total 39680
drwxrwxr-x  15 root  wheel       510 Jun  5 22:43 .
drwxrwxr-x   5 root  wheel       170 Jun  5 22:41 ..
-rw-rw-r--   1 root  wheel      3339 Jun  5 22:41 COPYRIGHT
-rw-rw-r--   1 root  wheel        40 Jun  5 22:41 LICENSE
-rw-rw-r--   1 root  wheel       114 Jun  5 22:41 README.html
-rw-rw-r--   1 root  wheel    123324 Jun  5 17:22 THIRDPARTYLICENSEREADME-JAVAFX.txt
-rw-rw-r--   1 root  wheel    172252 Jun  5 22:41 THIRDPARTYLICENSEREADME.txt
drwxrwxr-x  43 root  wheel      1462 Jun  5 22:47 bin
drwxrwxr-x   9 root  wheel       306 Jun  5 22:41 db
drwxrwxr-x   9 root  wheel       306 Jun  5 22:41 include
drwxrwxr-x  10 root  wheel       340 Jun  5 22:43 jre
drwxrwxr-x  13 root  wheel       442 Jun  5 22:43 lib
drwxrwxr-x   5 root  wheel       170 Jun  5 17:22 man
-rw-rw-r--   1 root  wheel       447 Jun  5 22:41 release
-rw-rw-r--   1 root  wheel  19995958 Jun  5 22:41 src.zip

If i try "n", I get

"Unknown compiler"

If i try "y", I get

"The path specified for JDK 1.7 does not exist:  /Library/Java/JavaVirtualMachines/jdk1.7.0_25.jdk/Contents/Home"

but that's the path I just LS'd above.

I did a lot of googling and stackoverflowing before writing you, but I am blocked. 

Can you help?  Required details below
    • The host platform (e.g., Linux, Mac OS X, Windows, etc.) 
    Mac OS X 10.8.4 (12E55)
    • The JDEE version (e.g., JDEE 2.4.1) 
    JDEE 2.3.4
    • The Emacs version (e.g., GNU Emacs 23.4.1) 
    GNU Emacs 24.2.1 (x86_64-apple-darwin12.4.0, NS apple-appkit-1187.39)
    • The JDK you are using (e.g., Oracle JDK 1.6.0_26-b03) 
    bash-3.2$ javac -version
    javac 1.7.0_25
    bash-3.2$ java -version
    java version "1.7.0_25"
    Java(TM) SE Runtime Environment (build 1.7.0_25-b15)
    Java HotSpot(TM) 64-Bit Server VM (build 23.25-b01, mixed mode)
    • complete contents of your .emacs file.
      Note Please do not make the common mistake of sending only the so-called "JDEE-related" part of an .emacs file. Send the entire file! If you don't like doing this, trim the file to the smallest amount that allows you to reproduce the problem. 
    (global-auto-revert-mode 1)

    (require 'package)
    (add-to-list 'package-archives
                 '("marmalade" . "http://marmalade-repo.org/packages/") t)
    (add-to-list 'package-archives
                 '("melpa" . "http://melpa.milkbox.net/packages/") t)

    (setq ispell-program-name "/usr/local/bin/ispell")

    (package-initialize)

    (defvar my-packages '(starter-kit
                          starter-kit-lisp
                          starter-kit-bindings
                          starter-kit-eshell
                          flymake
                          flyspell
                          haskell-mode
                          clojure-mode
                          clojure-test-mode
                          nrepl))

    (dolist (p my-packages)
      (when (not (package-installed-p p))
        (package-install p)))

    (exec-path-from-shell-initialize)
    (add-to-list 'load-path "~/.emacs.d/jdee-2.4.1/lisp")
    (load "jde")

    ;; Disable prompt on killing buffer with a process
    (setq kill-buffer-query-functions
          (remq 'process-kill-buffer-query-function
                kill-buffer-query-functions))

    (defun nrepl-kill ()
      "Kill all nrepl buffers and processes"
      (interactive)
      (when (get-process "nrepl-server")
        (set-process-sentinel (get-process "nrepl-server")
                              (lambda (proc evt) t)))
      (dolist (buffer (buffer-list))
        (when (string-prefix-p "*nrepl" (buffer-name buffer))
          (kill-buffer buffer))))

    (defun nrepl-me ()
      (interactive)
      (nrepl-kill)
      (nrepl-jack-in nil))

    (setq-default indent-tabs-mode nil)

    (set-register ?e (cons 'file "~/.emacs.d/init.el"))

    (defun scroll-up-one ()
      "Scroll up 1 line."
      (interactive)
      (scroll-up (prefix-numeric-value current-prefix-arg)))

    (defun scroll-down-one ()
      "Scroll down 1 line."
      (interactive)
      (scroll-down (prefix-numeric-value current-prefix-arg)))

    (defun unfill-paragraph ()
      "Opposite of M-Q : fill-paragraph"
      (interactive)
      (let ((fill-column (point-max)))
        (fill-paragraph nil)))

    (global-set-key "\C-x\M-q" 'unfill-paragraph)
    (global-set-key "\C-z"     'scroll-up-one)
    (global-set-key "\M-z"     'scroll-down-one)

    (autoload 'math "math" "Starts Mathematica" t)
    (autoload 'math-mode "math" 
      "Mode for editing Mathematica.  Loading will result in more info." t)
    (setq auto-mode-alist (cons '("\\.m\\'" . math-mode) auto-mode-alist))
    (custom-set-variables
     ;; custom-set-variables was added by Custom.
     ;; If you edit it by hand, you could mess it up, so be careful.
     ;; Your init file should contain only one such instance.
     ;; If there is more than one, they won't work right.
     '(jde-jdk (quote ("1.7")))
     '(jde-jdk-registry (quote (("1.7" . "/Library/Java/JavaVirtualMachines/jdk1.7.0_17.jdk/Contents/Home"))))
     '(tool-bar-mode nil))
    (custom-set-faces
     ;; custom-set-faces was added by Custom.
     ;; If you edit it by hand, you could mess it up, so be careful.
     ;; Your init file should contain only one such instance.
     ;; If there is more than one, they won't work right.
     )