You need to edit your .bashrc
file, that file should be located in your Home directory.
So, under the folder c:/users/your_user_name , create or edit the file .bashrc
export JAVA_HOME="C:/Program File/jdk17055"
Вопрос
How can I export (All) latest environmental variable in Cygwin ?
I initially has JAVA_HOME = C:\Program File\jdk16021
then I upgrade to 1.7 and change the environment variable to JAVA_HOME = C:\Program File\jdk17055\
but Cygwin is still showing JAVA_HOME = C:\Program File\jdk16021
Решение
You need to edit your .bashrc
file, that file should be located in your Home directory.
So, under the folder c:/users/your_user_name , create or edit the file .bashrc
export JAVA_HOME="C:/Program File/jdk17055"