[Emacs / Java] JDEE on Windows (1)
Quick Reference about Install JDEE (Java Development Environment for Emacs) on Windows. (Summary of JDEE Installation Guide)
- Install Emacs.         
- download emacs.
 - install to "C:\Program Files\emacs".
 - register emacs:            
cd "C:\Program Files\emacs\bin"
addpm 
 - Install Java Tools.         
- download Java SE Development Kit (JDK) 6 Update 11.
 - download Java SE 6 Documentation.
 - install to "C:\Program Files\Java\jdk1.6.0_11".
 
 - Install Cygwin.         
- download setup program.
 - install to "C:\cygwin".
 
 - Install JDEE, CEDET, Emacs Lisp library and ECB.         
- download jdee, CEDET, elib and ecb.
 - unpack them to "C:\cygwin\home\username\emacs\site\".
 - the directory tree looks like:            
C:\cygwin\home\username\emacs\site
C:\cygwin\home\username\emacs\site\jde
C:\cygwin\home\username\emacs\site\jde\lisp
C:\cygwin\home\username\emacs\site\jde\......
C:\cygwin\home\username\emacs\site\cedet
C:\cygwin\home\username\emacs\site\cedet\speedbar
C:\cygwin\home\username\emacs\site\cedet\......
C:\cygwin\home\username\emacs\site\elib
...... 
 - Assign Environment Variables.        
- set the user's environment vars. (我的電腦->內容->進階->環境變數->使用者變數->新增)
 - HOME=C:\cygwin\home\username
 - PATH=C:\cygwin\bin
 
 - Setup Emacs.        
- download minimal .emacs file.
 - copy it to "C:\cygwin\home\username\emacs\.emacs"
 - edit the ".emacs" file. and add these lines.            
(custom-set-variables
'(current-language-environment "Chinese-BIG5")
'(default-coding-system "chinese-big5")
'(default-input-method "chinese-b5-tsangchi")
'(jde-jdk-registry (quote (("1.5.0" . "C:/Program Files/Java/jdk1.6.0_11"))))
)
(add-to-list 'load-path (expand-file-name "~/emacs/site/ecb"))
(require 'ecb-autoloads) 
 - Patch and Compile JDEE.        
- download 02_workaround_for_bytecompiling_efc.
 - run the setup program of cygwin again. and install the "patch", "make", "emacs", ...... packages.
 - patch the file: "C:\cygwin\home\ic-mfhsieh\emacs\site\jde\lisp\efc.el"
 - Run emacs.
 - execute the emacs command: M-x jde-compile-jde
 
 - Compile CEDET, elib and ecb.        
- run cygwin bash shell.
 - make cedet and elib.            
cd ~/emacs/site/cedet; make
cd ~/emacs/site/elib; make - run emacs. and execute the emacs command: M-x ecb-byte-compile
 
 
閱讀全文 ...