I'm using Windows and Git Bash. Whenever I type a javac
command in Git Bash, it comes back reading: sh.exe":javac: command not found
.
I then have to type out export PATH=$PATH:"/c/Program Files/Java/jdk1.8.0_45/bin/"
The javac
command then works on the next line after I type the export PATH command in.
My question is, how do I get Git Bash to remember that export command so I don't have to type it out each time?