I have been using only the Compile and Run commands from JDE menu, and
that has been enough because I am not doing serious programming at the
moment. Anyhow, I would like to know how to use the Build command in JDE
menu; it hasn't worked out for me yet, no matter what I do. The problem
is that jde Build adds the option "-Xdepend" to the javac command, but I
am using jdk 1.3 which does not support the option.

Find below
- contents of compilation buffer 
- my project file, 
- my .emacs file. 

I am now using jde-2.2.9beta8 (with elib-1.0, eieio-0.17beta3,
semantic-1.4beta13, speedbar-0.14beta2 and the latest efc.el patch), but
the same happened with 2.2.9beta7 too. I have not set any JDE options by
manually editing them in .emacs or the project file.

Heini



Content of buffer *compilation* after trying Build:

cd c:/USERS/PERSONAL/Diary/sources/template/
c:/apps/jdk1.3.1_02/bin/javac.exe -sourcepath
c:/users/personal/diary/sources -d c:/users/personal/diary/classes
-Xdepend SwingApp.java

javac: invalid flag: -Xdepend
Usage: javac <options> <source files>
where possible options include:
  -g                        Generate all debugging info
  -g:none                   Generate no debugging info
  -g:{lines,vars,source}    Generate only some debugging info
  -O                        Optimize; may hinder debugging or enlarge
class file
  -nowarn                   Generate no warnings
  -verbose                  Output messages about what the compiler is
doing
  -deprecation              Output source locations where deprecated
APIs are used
  -classpath <path>         Specify where to find user class files
  -sourcepath <path>        Specify where to find input source files
  -bootclasspath <path>     Override location of bootstrap class files
  -extdirs <dirs>           Override location of installed extensions
  -d <directory>            Specify where to place generated class files
  -encoding <encoding>      Specify character encoding used by source
files
  -target <release>         Generate class files for specific VM version


Compilation exited abnormally with code 2 at Sun Jan 27 14:29:53


My project file:
================

(jde-project-file-version "1.0")
(jde-set-variables
 '(jde-project-name "template")
 '(jde-javadoc-gen-packages (quote ("template")))
 '(jde-run-executable "SwingApp")
 '(jde-run-application-class "template.SwingApp"))


Emacs  : GNU Emacs 21.1.1 (i386-msvc-nt4.0.1381)
 of 2001-10-22 on buffy
Package: JDE version 2.2.9beta8


My .emacs file:
===============

;; Set the debug option to enable backtrace when a problem occurs.
(setq debug-on-error t)

;; Always load JDE
;;(setq defer-loading-jde nil)
;; Defer loading JDE until a java file is opened
(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))

;; Setup Emacs to run bash as its primary shell.
(setq shell-file-name "c:/apps/cygwin/bin/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.

;; The rest is created by Customize Emacs
(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-compile-option-directory "c:/users/personal/diary/classes")
 '(jde-compile-option-sourcepath (quote
("c:/users/personal/diary/sources")))
 '(jde-compiler (quote ("javac" "")))
 '(jde-db-option-classpath (quote ("c:/users/personal/diary/classes")))
 '(jde-db-source-directories (quote
("c:/users/personal/diary/sources")))
 '(jde-make-working-directory "c:/users/personal/diary/")
 '(jde-project-file-name "jde-project.el")
 '(jde-run-option-classpath (quote ("c:/users/personal/diary/classes")))
 '(jde-run-working-directory "c:/users/personal/diary")
 '(user-full-name "Heini Aarela")
 '(user-mail-address "[EMAIL PROTECTED]"))
(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.
 )

=== end of inserts ===

Reply via email to