At 04:10 PM 12/1/99 -0500, Ploski, Karen L wrote:
>After experimenting a bit more, and using Jeff Rancier's example for
>inspiration, I was able to
>set jde-db-source-directories in my ".emacs" file. Just in case this is
>helpful to anyone, this
>is what now works for me:
>
>(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 (quote ("e:/jdk1.2.2-95/bin/jdb.exe" . "Executable")))
> '(jde-run-java-vm-w "e:/jdk1.2.2-95/bin/java.exe")
> '(jde-db-source-directories (quote
>("c:/javapkg/Alphabet/Start;c:/javapkg")))
>)
Hi Karen,
Did you use customize to set your JDE variables in your .emacs? Or are you
editing the custom-set-variables form directly in your .emacs file. The
latter approach is a tempting shortcut but in the end often ends up costing
more time because it deprives the Emacs user of one of the major benefits
of custom, which is that customzie generates customization code for you,
eliminating Lisp errors. This is especially important as Lisp variables are
untyped. Lisp will let you set any variable to any value.
Case in point is jde-db-source-directories. The JDE expects the value of
this variable to be a list of strings, each of which is a separate
component of the classpath, i.e., in your case, the value should be
(list "c:/javapkg/Alphabet/Start" "c:/javapkg"))
not
(list "c:/javapkg/Alphabet/Start;c:/javapkg"))
and not
"c:/javapkg/Alphabet/Start;c:/javapkg"
The best and easiest way to set this variable (or any jde variable) is to do
M-x customize-variable jde-db-source-directories
This command shows the following in a custom edit buffer:
Jde Db Source Directories: [Hide]
[INS]
[State]: this option is unchanged from its standard setting.
List of source directory paths. [Hide]
The JDE uses this list to locate source files corresponding
to class files when debugging or building applications.
When entering paths in the custom buffer, enter each path as a separate
item in a separate edit field. Do NOT put more than one path in the
same edit field. You'll only confuse JDE.
Parent groups: [Jde Project]
Note that the custom buffer tells you explicitly to enter each path
separately, e.g.,
Jde Db Source Directories: [Hide]
[INS] [DEL] Path: c:/javapkg/Alphabet/Start
[INS] [DEL] Path: c:/javapkg
[INS]
[State]: you have edited the value as text, but you have not set the option.
List of source directory paths. [More]
When customize first became available, I spent a lot of time and effort to
convert JDE to use this new facility because it protects users, even
experience users, from problems like the one you just encountered. I use
customize myself religiously. I NEVER customize the JDE directly in my
.emacs file. I urge all JDE users to do so also. You'll save yourself a lot
of grief.
- Paul