The Widows EnvVar panel does support a PATH variable (or any other
arbitrary name you like). Our old favorite MSDOGS command.com uses
PATH just like bash. And the separator is semi-colon ';'...
When cygwin bash starts-up it converts the 'global' PATH to it's own
liking by replacing C: with /cygdrive/c, inverting the backslashes,
and converting the semi's to full colons ':'. (Although a quick
experiment just now indicates that either semi or full seems to work...)
You may create your own PATH, or add to it using the syntax that uhu
indicated, but note, it's "cygdrive" not "dirv"... and if you have
any spaces in directory names, like "Program Files", you should put
the whole thing in quotes: "xxx" -- this was I think your original
problem. Also the trailing period is not Latinate syntax, but means
the current directory -- so do this:
export PATH="$PATH;/cygdrive/c/Program Files/java/jre1.6.0_03/bin;."
However, some other little caviets...putting the JRE in your path is
less than ideal since you probably want to compile Java files using
the JDK. And the whole idea of putting the JDK in "Program Files"
gives me the willies when trying access it with the danged space.
I usually force Java installs to go to something like C:/JAVA just
to avoid the headache.
MS
Urs Hunkeler wrote:
Hi,
I think that the Windows Environment Variables dialog does not know
about $PATH. It seems that you have overwritten the old path settings.
You probably have to locate your java installation and add the path to
your java executables manually to the path again. In the Windows
Environment Variables dialog, don't use the special word $PATH but write
all paths individually, separating them with a semi-colon (;).
Once your path settings work again, if you need to add paths in cygwin,
use the command like (note that it uses now semi-colons (;) instead of
colons (:)) :
export PATH=$PATH;/cygdirve/c/Program Files/java/jre1.6.0_03/bin;.
Cheers,
Urs
Ittipong Khemapech schrieb:
Hi,
I typed:
export PATH=$PATH:/cygdirve/c/Program Files/java/jre1.6.0_03/bin:
and got:
bash: export: 'Files/java/jre1.6.0_03/bin:': not a valid identifier
I set PATH variable in the Environment Variables by selecting Properties of
My Computer (under Advanced tab). I followed all suggested in
http://www.tinyos.net/tinyos-2.x/doc/html/install-tinyos.html.
After I typed echo $PATH, I got:
/opt/msp430/bin:/usr/local/bin:/usr/bin:/usrX11R6/bin:/opt/msp430/bin:$PATH
Many thanks,
Ittipong
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help