On Thu, 2003-01-30 at 09:45, Petter M�hl�n wrote:
> Is your jde-compile-finish-hook set to something unusual? It looks like
> it is failing for some reason. Also, it seems that the compilation as
> such is not successful.
>
> / Petter
>
here ' s my .emacs:
########################
# begining of .emacs #
########################
(global-font-lock-mode t) ;pour avoir les couleurs sans avoir a taper
font-lock-mode
(setq font-lock-maximum-decoration t) ;maximum de couleurs
(transient-mark-mode t) ;pour que la region selectionnee soit mise en
surbrillance
(setq c-auto-newline t) ; pour que l'on n'ait pas a taper sur TAB pour
indenter
(set-background-color "SkyBlue1")
(set-foreground-color "white")
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; CSS MODE ;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(autoload 'css-mode "css-mode")
(setq auto-mode-alist
(cons '("\\.css\\'" . css-mode) auto-mode-alist))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Mouse wheel ;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(defun up-slightly () (interactive) (scroll-up 5))
(defun down-slightly () (interactive) (scroll-down 5))
(global-set-key [mouse-4] 'down-slightly)
(global-set-key [mouse-5] 'up-slightly)
(defun up-one () (interactive) (scroll-up 1))
(defun down-one () (interactive) (scroll-down 1))
(global-set-key [S-mouse-4] 'down-one)
(global-set-key [S-mouse-5] 'up-one)
(defun up-a-lot () (interactive) (scroll-up))
(defun down-a-lot () (interactive) (scroll-down))
(global-set-key [C-mouse-4] 'down-a-lot)
(global-set-key [C-mouse-5] 'up-a-lot)
(setq debug-on-error t)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; J D E ;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(add-to-list 'load-path (expand-file-name "~/downloads/jde-2.3.2/lisp"))
(add-to-list 'load-path (expand-file-name "~/downloads/semantic"))
(add-to-list 'load-path (expand-file-name "~/downloads/speedbar"))
;(add-to-list 'load-path (expand-file-name "~/emacs/site/elib"))
(add-to-list 'load-path (expand-file-name "~/downloads/eieio"))
(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"))
;;;;;;;;;;;;;;;NOT DEFERRINING JDE LOADING;;;;;;;;;;;;;;;;;;;;;;;
(setq defer-loading-jde nil)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(if defer-loading-jde
(progn
(autoload 'jde-mode "jde" "JDE mode." t)
(setq auto-mode-alist
(append
'(("\\.java\\'" . jde-mode))
auto-mode-alist)))
)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; 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)
(custom-set-variables
;; custom-set-variables was added by Custom -- don't edit or cut/paste
it!
;; Your init file should contain only one such instance.
'(jde-compiler (quote ("javac" ""))))
(custom-set-faces
;; custom-set-faces was added by Custom -- don't edit or cut/paste it!
;; Your init file should contain only one such instance.
)
(require 'jde)
####################
# end of .emacs #
####################
1�)
I found that " require jde "was not at the end of the file , i already
moved it on my actual configuration file ,
and when i compile the file Banque.java with javac in a console, it
works without any errors or warnings.
"java Banque" also works correctly i run it wihtout problems .
but compiling it within emacs goes wrong .
I use sun SDK 1.4. and here are the news errors i get
thanks for help
#########################
ERRORS
#########################
cd /home/rktmb/programation/java/
/:/bin/java -Xdebug
-Xrunjdwp:transport=dt_socket,address=4444,server=y,suspend=n Banque
Can't exec program: /:/bin/java
Process Banque exited abnormally with code 1
#########################