i am still having problem when i run .emacs
here is what i get when i run a simple .emacs which i got from JDE Install for windows and the only thing i modified was where all the packages located ..
first when i run bash:emacs i get ********************************************************************** (c:\emacs-21.3\bin\emacs.exe)
An error has occurred while loading `c:/cygwin/home/Owner/.emacs':
File error: "Cannot open load file", "c:/cygdrive/c/emacs-21.3/cedet-1.0beta2a/common/cedet.el"
To ensure normal operation, you should investigate the cause of the error in your initialization file and remove it. Start Emacs with the `--debug-init' option to view a complete error backtrace ***************************************************************
Second when i run emacs with debug mode........
Debugger entered--Lisp error: (file-error "Cannot open load file" "c:/cygdrive/c/emacs-21.3/cedet-1.0beta2a/common/cedet.el")
load("c:/cygdrive/c/emacs-21.3/cedet-1.0beta2a/common/cedet.el" nil nil t)
load-file("c:/cygdrive/c/emacs-21.3/cedet-1.0beta2a/common/cedet.el")
eval-buffer(#<buffer *load*> nil "~/.emacs" nil t)
load-with-code-conversion("c:/cygwin/home/Owner/.emacs" "~/.emacs" t t)
load("~/.emacs" t t)
#[nil ",T
*********************************************************
when i coment out the error lines i get
can not load (required 'jde)
***********************************************************
here is the simple .emacs file i downloaded ..
;; This .emacs file illustrates the minimul setup ;; required to run the JDE.
;; Set the debug option to enable a backtrace when a ;; problem occurs. (setq debug-on-error t)
;; Update the Emacs load-path to include the path to ;; the JDE and its require packages. This code assumes ;; that you have installed the packages in the emacs/site ;; subdirectory of your home directory.
;;*************************************************************** ;;(add-to-list 'load-path (expand-file-name "~/emacs/site/jde/lisp")) ;;(add-to-list 'load-path (expand-file-name "~/emacs/site/cedet/common")) ;;(add-to-list 'load-path (expand-file-name "~/emacs/site/elib")) ;;*******************************************************************
;;*******************************************************************
(add-to-list 'load-path (expand-file-name "/cygdrive/c/emacs-21.3/lisp/lisp"))
(add-to-list 'load-path (expand-file-name "/cygdrive/c/emacs-21.3/jde-2.3.4/lisp/lisp"))
(add-to-list 'load-path (expand-file-name "/cygdrive/c/emacs-21.3/cedet-1.0beta2a/semantic"))
(add-to-list 'load-path (expand-file-name "/cygdrive/c/emacs-21.3/cedet-1.0beta2a/speedbar"))
(add-to-list 'load-path (expand-file-name "/cygdrive/c/emacs-21.3/elib-1.0"))
(add-to-list 'load-path (expand-file-name "/cygdrive/c/emacs-21.3/cedet-1.0beta2a/eieio"))
;;****************************************************************************
;; Initialize CEDET.
(load-file (expand-file-name "/cygdrive/c/emacs-21.3/cedet-1.0beta2a/common/cedet.el"))
;; If you want Emacs to defer loading the JDE until you open a ;; Java file, edit the following line (setq defer-loading-jde nil) ;; to read: ;; ;; (setq defer-loading-jde t) ;;
(if defer-loading-jde (progn (autoload 'jde-mode "jde" "JDE mode." t) (setq auto-mode-alist (append '(("\\.java\\'" . jde-mode)) auto-mode-alist))) (require 'jde))
;; Sets the basic indentation for Java source files ;; to two spaces. (defun my-jde-mode-hook () (setq c-basic-offset 2))
(add-hook 'jde-mode-hook 'my-jde-mode-hook)
;; Include the following only if you want to run ;; bash as your shell.
;; Setup Emacs to run bash as its primary shell. (setq shell-file-name "bash") (setq shell-command-switch "-c") (setq explicit-shell-file-name shell-file-name) (setenv "SHELL" shell-file-name) (setq explicit-sh-args '("-login" "-i")) (if (boundp 'w32-quote-process-args) (setq w32-quote-process-args ?\")) ;; Include only for MS Windows. ************************************************************
THANK YOU, YOUR COOPERATION ON THIS MATTER IS GREATLY APPRECIATED ..