Little Bird
Little Bird

Reputation: 91

why need we add $path at the end when we config jdk variables in ubuntu;

When we config JDK environment varibales in Ubuntu. We always do like this: export PATH=${JAVA_HOME}/bin:$PATH why need we add the $PATH??

Upvotes: 0

Views: 29

Answers (1)

Foxsly
Foxsly

Reputation: 1028

It appends the existing path to the end of the path you are setting. The snippet you gave is basically adding your java location to the beginning of your path.

Upvotes: 1

Related Questions