I have tried this approach already (I had the same hunch), but it still
does not work. I don't know what's going on...
Mike
On Wed, 3 Apr 2002, Paul Kinnucan wrote:
> 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
> >
>