At 03:57 PM 10/5/00 +0300, Hursti Roni wrote:
> > Code completion needs the beanshell. However, the JDE cannot start the
> > beanshell because the Java vm cannot find the Java API classes. I don't
> > see
> > anything wrong with your JDE setup. Perhaps there is some problem with
> > your
> > jdk setup. Perhaps your installation includes a version of JDK 1.1.x and
> > this version is in the Emacs command path and hence is being run. This
> > would account for the error you are getting as you did not include the JDK
> > API classes in jde-global-classpath, which is not necessary for JDK 1.2
> > but
> > is necessary for JDK 1.1.
> >
>         Thanks for information. Yes, I noticed that emacs used my old
>jdk-version 1.1.4.
>         Now I removed it but it didn't help. Jdk 1.2 or later versions need
>JAVA_HOME
>         environment variable. I have set it in .bashrc but perhaps emacs
>doens't use
>         that environment. Do you know how to set it(JAVA_HOME environment
>         varible) under emacs?


The JDE does NOT use a shell to launch the beanshell. It launches the 
beanshell as a subprocess of Emacs. Subprocesses on Unix, I believe, 
inherit the environment of the parent process. Thus, the beanshell vm 
should inherit the environment of Emacs and Emacs should inherit the 
environment of the shell that launched it. Thus, if you set JAVA_HOME in 
the shell that you used to start Emacs, that should be enough. You can 
determine the environment used to launch the beanshell by executing 
JDE->Help->Submit Problem Report. This command generates a complete 
snapshot of the Emacs environment, including all environment variables, at 
the time the command is executed. Learn to use this command. It is your one 
and only true friend when you have a problem and need help from people like 
myself who live on the other side of the planet from you.

- Paul

Reply via email to