I have a question about the way that the Java SDK install happens on a MAC vs Windows.
In Windows you put the JDK wherever you want and then add the bin directory to your system %PATH%. Then you add %JAVA_HOME% and everything seems to work.
I'm fairly new to a Mac and have just done a java install. I've noticed the following.
The JDK has been placed in the following directory...
/Library/Java/JavaVirtualMachines/jdk1.8.0_111.jdk/Contents/Home
But if I do a which java it shows me...
/usr/bin/java
And then an ls -ltr on /usr/bin/java shows...
lrwxr-xr-x 1 root wheel 74 22 Jul 06:35 /usr/bin/java -> /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/java
It also looks like the other java executables can also be found in /usr/bin.
I'm not used to this and a bit confused about how this all hangs together.
Could someone please help me with an explanation.
thanks
No comments:
Post a Comment