I found a solution to the problem that is even simpler.  My
jde-jdk-registry had 3 entries and the first one was blank.  I simply
removed the blank entry and made sure the jdk I wanted to use as a default
was the first in the list.  I never even have to set jde-jdk; the first
entry in the registry automatically gets used.


Mike

On Thu, 4 Apr 2002, Schlee Stefan wrote:

> At least since FSF emacs 21.1.1 there is a ":set-after" parameter for
> the defcustom macro that maybe solves your problem in a more general
> way.
>
> Because it seams to be introduced not before the version noted above,
> there is no documentation in the reference manual, type C-h f defcustom.
>
> Regards Stefan
>
> > -----Urspr�ngliche Nachricht-----
> > Von: Paul Kinnucan [mailto:[EMAIL PROTECTED]]
> > Gesendet: Mittwoch, 3. April 2002 22:37
> > An: Mike Charnoky
> > Cc: [EMAIL PROTECTED]
> > Betreff: jde-jdk save/load errors
> >
> >
> > Mike Charnoky writes:
> >  > I have been modifying jde-jdk and jde-jdk-registry lately.
> >  This feature
> >  > works great and has allowed me to use Sun's JDK for
> > debugging, since I've
> >  > had problems with IBM's.  However, when I save my setup,
> > it fails to load
> >  > properly.  Upon reloading, jde-jdk's value is ("").  The
> > jde-jdk-registry
> >  > is loaded properly, however.  The .emacs file looks fine:
> >  >
> >
> > I believe this is a bug related to the dependency of jde-jdk
> > on jde-jdk-registry. jde-jdk must be defined after
> > jde-jdk-registry since it refers to options
> > determined by jde-jdk-registry. However, the code that Emacs
> > writes in your .emacs file to set these variables sets them
> > in alphabetical order, which is the
> > wrong order. I will have to rename these variables so that
> > the name of the variable that specifies the active jdk comes
> > after the name of the variable that
> > specifies the set of available JDKs on your system, e.g.,
> >
> > jde-jdk-registry
> > jde-jdk-selected
> >
> > I'm open to suggestions for renaming these variables.
> >
> > Meanwhile, as a workaround, edit your .emacs file so that
> > the line that sets jde-jdk comes after the line that sets
> > jde-jdk-registry or, alternatively, create a project file
> > and save your customization for jde-jdk in the project
> > file, leaving your customization for jde-jdk-registry
> > in your .emacs file. Whenever you change jde-jdk, save
> > it in your project file (C-c C-v C-p). This avoids the
> > need for you to edit your .emacs file evey time you
> > change JDKs.
> >
> > - Paul
> >
> >
> >  > ;; JDEE stuff and other vars
> >  > (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-debug (quote ("all" (t nil nil))))
> >  >  '(jde-compiler (quote ("jikes" "")))
> >  >  '(jde-db-source-directories (quote ("" "~/cvs-devel/Java")))
> >  >  '(jde-debugger (quote ("JDEbug")))
> >  >  '(jde-jdk (quote ("Sun 1.3.1_02")))
> >  >  '(jde-jdk-doc-url
> > "http://java.sun.com/j2se/1.3/docs/api/index.html";)
> >  >  '(jde-jdk-registry (quote (("" . "") ("IBM 1.3.0 SR13" .
> >  > "/usr/local/jdks-ibm/IBMJava2-13-20020124") ("Sun 1.3.1_02" .
> >  > "/usr/local/jdks-sun/jdk1.3.1_02"))))
> >  >  '(query-user-mail-address nil)
> >  >  '(user-mail-address "[EMAIL PROTECTED]"))
> >  >
> >  > I tried swapping jde-jdk and jde-jdk-registry, thinking
> > that the registry
> >  > needed to be loaded first, but this didn't work.
> >  >
> >  > Any suggestions?
> >  >
> >  >
> >  > Mike
> >  >
> >
>

Reply via email to