I would like to set various JDE variables in my ".emacs" file, including
jde-compiler.

I've tried 3 different ways, they all fail.  By "fail" I mean that after
Emacs is loaded,  I enter C-h v followed by the variable name, to display 
it's value.  The value Emacs displays for the variable is its default value.

I'm somewhat familiar with Emacs, but I'm not an Emacs expert.  I would very

much appreciate any help any one would like to offer.  

My e-mail address is:

[EMAIL PROTECTED]

Here are the 3 different ways I've tried to set the variables of interest to
me.  What is the correct way to set these variables?  Does the "correct way"
differ depending on whether you are using Emacs 20.3.1 or Emacs 20.4.1? (I
have both releases of Emacs, all the information below applies to my use of
Emacs 20.4.1).

Method 1

(setq jde-compiler (list "e:/jdk1.2.2-95/bin/javac.exe"))
(setq jde-run-java-vm-w (list "e:/jdk1.2.2-95/bin/java.exe"))
(setq jde-db-debugger (list "e:/jdk1.2.2-95/bin/jdb.exe"))
(setq jde-db-source-directories (list "c:/javapkg/Alphabet/Start"
"c:/javapkg/Alphabet"))
(setq jde-db-option-classpath (list "c:/javapkg" "."))

Method 2

(put 'jde-compiler 'customized-value "e:/jdk1.2.2-95/bin/javac.exe")
(put 'jde-run-java-vm-w 'customized-value "e:/jdk1.2.2-95/bin/java.exe")
(put 'jde-db-debugger 'customized-value "e:/jdk1.2.2-95/bin/jdb.exe")
(put 'jde-db-source-directories 'customized-value
"c:/javapkg/Alphabet/Start" "c:/javapkg/Alphabet")
(put 'jde-db-option-classpath 'customized-value "c:/javapkg" ".")

Method 3

(custom-set-variables
  '(jde-global-classpath "c:/javapkg;." )
  '(jde-compiler "e:/jdk1.2.2-95/bin/javac.exe")
  '(jde-compile-options "-deprecation")
  '(jde-db-debugger "e:/jdk1.2.2-95/bin/jdb.exe")
  '(jde-run-java-vm-w "e:/jdk1.2.2-95/bin/java.exe")
  '(jde-db-source-directories
"c:/javapkg;c:/javapkg/Alphabet;c:/javapkg/Alphabet/Start")
 )

I'm running:
- Windows 95
- jde-2.1.6Beta10
- Emacs 20.4.1
- jdk 1.2.2 from Sun Microsystems.

The following commands appear in my Emacs file BEFORE the commands listed
above.  Yes, I only try one of the 3 sets of commands listed above in my 
".emacs" file at any one time.

I'm not using a "prj.el" file.


(setq system-name "RV-PLOSKIKL")

;; To use the common open file dialogue:
;; Download dlgopen from Emacs FAQ
(setq dlgopen-executable-path "e:/gnu-95/dlgopen/dlgopen/getfile.exe")
(load "e:/gnu-95/dlgopen/dlgopen/dlgopen.el")

;; where to find JDE
(setq load-path 
   (nconc 
    '( 
      "e:/gnu/jde-2.1.6beta10/lisp" 
      ;; Add paths to other add-on packages here. 
      ) 
     load-path))
(require 'jde)

;; keyword syntax highlighting
(setq font-lock-maximum-decoration 
        '((java-mode . 2)))
(global-font-lock-mode t)

(setq default-frame-alist 
        '((background-color . "light blue")
         (cursor-color . "red3")))

(set-default-font "-*- Courier New-bold-r-*-*-14-80-*-*-c-*-*-ansi-")

;; Emacs window is 40 columns wide and 80 rows high
(set-frame-height (selected-frame) 40)
(set-frame-width (selected-frame)  80)


;; to match left and right parenthesis
(show-paren-mode)

;; to use "Print" from the Emacs Tools menu
(setq printer-name "//RV-PRINT1/Armadillo-PCL")

;; To use Internet Explorer to view JDK and JDE documentation
;; Download shelex.exe from Emacs FAQ
(defvar shell-execute-helper "shelex.exe")
(defun shell-execute-url (url &optional new-window)
"Invoke the shell-execute-helper program to call ShellExecute and launch or
re-direct a web browser on the specified url."
  (interactive "sURL: ")
  (call-process shell-execute-helper nil nil nil url))

(setq browse-url-browser-function 'shell-execute-url)
(setq gnus-button-url 'shell-execute-url)       ; GNUS
(setq vm-url-browser 'shell-execute-url)        ; VM

Reply via email to