At 09:25 AM 2/10/00 -0700, you wrote:
>Good day -
>
>I am new to both Linux and Emacs, so please forgive any newbie mistakes.
>
>I downloaded jdk 1.2.2 and the jde for xemacs. I am trying to create some
>Enterprise Java Beans, but it would seem that jde can't see the import
classes.
> I have the following in my *.java :
> import javax.ejb.SessionBean
>and I get an error message that it can't be found. I have the following in my
>.emacs:
>(setq jde-global-classpath '("/usr/jdk/jdk1.2.2/" $JONAS_ROOT "."))
^^^^^^^^^^^^
I'm surprised the above did not give you a Lisp error as it is not
quoted.
In general, it is not a good idea to use environment variables when setting
JDE variables. The JDE uses the implicit shell to launch javac, e.g., it in
effect does this
sh -c javac -classpath /usr/jdk/jdk1.2.2/:$JONAS_ROOT your.Class
I'm a bit fuzzy whether this environment variable will get expanded by the
shell in this case. Even it it does, the classpath will not work when you
are running or debugging applications because the JDE launches java and jdb
directly without using a shell.
>(setq load-path
> (nconc '(
> "/usr/jdk/emacs_jde/jde-2.1.5"
> )
> load-path))
>(require 'jde)
>
>And JONAS_ROOT is defined in my .bashrc with the directory of the Jonas App
>Server that has all the RMI stuff.
>
>I am not sure how to set the classpath in JDE, if I even need to.
>
Via the environment variable CLASSPATH or by setting jde-global-classpath
to include all required paths explicitly (i.e., without env variables).
- Paul