Skip to content

Instantly share code, notes, and snippets.

@JiaruiTracy
Created February 23, 2017 21:09
Show Gist options
  • Select an option

  • Save JiaruiTracy/ebadd47b04aa18bae87f581e24da8169 to your computer and use it in GitHub Desktop.

Select an option

Save JiaruiTracy/ebadd47b04aa18bae87f581e24da8169 to your computer and use it in GitHub Desktop.
About jdk on MAC
The issue came up when I import a external big project, some jar files could not be found. Different from Windows OS, Mac OS X doesn't need to deploy class path or JAVA_HOME, but as a new user of Mac I just make this convenience complex. To deal with the issue, I searched for "where is jdk on mac located", "where is Library file on mac".
It's hard to operate jdk on Mac, but also, after searching a lot of information, finally I realized that it is unnecessary to know where the jdk is and how to change it.
All settings have been deployed automaticly after downloading Eclipse, the additional things that developer needs to do is: if you realize that some .jar files are not included in your jdk /lib file while developing, just download the .jar file from internet and then click on Eclipse <Preference> --> <Java> --> <Installed JREs> --> select your JDK --> <Edit>, then you can see your JRE system libraries. If the jar you want doesn't exist there, click on <Add External JARs to the list>, go to your downloaded jar file path, choose your jar file.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment