Hello Paul,

there are a lot of questions about the environment variable CLASSPATH,
the JDE classpath-variables like jde-global-classpath and the coherence
between both of them.

Therefore a suggestion from me: Why not adding a new option 
'jde-import-classpath-environment-var' which means if set to not
nil that every time a project is loaded jde-global-classpath will be
automatically set to the value of the env-var CLASSPATH. This should be
very easy (getenv "CLASSPATH" and then doing the inverse work you already make
when you set the -classpath option of javac with the jde-global-classpath value).

What do you think?

Klaus

"Setting a Global Classpath

The JDE allows you to define a classpath that applies to compiling,
running, and debugging Java code. You define this classpath by customizing
the jde-global-classpath option. To display a customization buffer for this
variable, select JDE->Project->Options->General or enter M-x
customize-variable jde-global-classpath.

Note Do not make the mistake of setting jde-global-classpath the way you
set the -classpath switch of the Java vm. The value of jde-global-classpath
is a list of strings, each of which specifies a path. When starting a
program that requires the -classpath switch, such as javac, the JDE
converts this list to a string consisting of paths separated by a semicolon
or colon.

You can also define separate classpaths for compile, run, and debug
operations by customizing the variables jde-compile-option-classpath, or
jde-run-option-classpath, jde-debug-option-classpath, respectively. If you
set any of these variables, the variable overrides the value defined by
jde-global-classpath for the operation to which the variable applies."

Reply via email to