[kepler-dev] Environment variables Problem: Help!

Peter Reutemann fracpete at gmail.com
Sat Mar 7 19:55:14 PST 2009


> This may not directly relate to Kepler, however if someone has faced a
> similar problem, kindly reply back.
> This is some problem while configuring Vista environment variables.
> Changes in the 'path' under system and user variables don't seem to reflect.
>
> 1) My 'path' variable under system variables looks like:
>
> %SYSTEMROOT%\SYSTEM32;%SYSTEMROOT%;%SYSTEMROOT%\SYSTEM32\WBEM; C:\Program
> Files\kepler-1.0.0\R\R-2.6.2\bin; \Program Files\Java\jdk1.5.0_15\bin;
> C:\Program Files\apache-ant-1.7.1-bin\apache-ant-1.7.1\bin
>
> 1) I am trying to run R (executable file present in the bin), which is not
> running despite adding
> C:\Program Files\kepler-1.0.0\R\R-2.6.2\bin to the path variable.

If you open a command prompt, can you launch the R shell?

> 2) When I type java -version, I get java version "1.6.0_02" as the reply,
> while there is no trace of this version anywhere in the environment
> variables.
> Neither does ant -version give any response..when infact it should give the
> version.

A Java installation places a java.exe in %SYSTEMROOT%\SYSTEM32, which
determines what java version is the one normally found first in the
PATH (you list "%SYSTEMROOT%\SYSTEM32" in your PATH variable as first
entry). Either you replace the java.exe (and also javac.exe and
javaw.exe) in that directory or you place the location of the Java
binaries ("...\jdk1.5.0_15\bin") as first entry in the PATH variable.

BTW you've got the location of Java wrong:
   \Program Files\Java\jdk1.5.0_15\bin
But it should read:
 C:\Program Files\Java\jdk1.5.0_15\bin

> 3) I was confused where to add the path variable, so I've added it to both
> user and system variables.

If you're the only one using the computer and nobody else uses
Kepler/R, then the "user" section is fine (only applies to your user
then), otherwise use the "system" section, which will affect any user
logging into your computer. You should only specify it in one
location.

Also, you might want to get rid of the extra spaces after the ";". I
know that Java is really picky about this in the CLASSPATH definition.
Not sure how robust Windows is in that respect. This could explain why
ant doesn't work.

Cheers, Peter
-- 
Peter Reutemann, Dept. of Computer Science, University of Waikato, NZ
http://www.cs.waikato.ac.nz/~fracpete/           Ph. +64 (7) 858-5174


More information about the Kepler-dev mailing list