Environment variables in linux
Hi All,
I'm using Ubuntu 9.10, and i can run "java --version" and i get Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
Java HotSpot(TM) 64-Bit Server VM (build 16.3-b01, mixed mode)
and i can also build and run java programs. but when i want to "echo $JAVA_HOME" i get nothing. this means that this environment variable was not set. so why my java is working correctly? how i can realize the location of my java installation? and the same happened for my Maven installation :-/ i can run "mvn --version" but its corresponding EV is empty :-/
any idea???
|