使用IntelliJ idea新建工程时需要查看jdk安装目录,记录下来为以后备用. mac自带jdk,查看jdk版本: IcarusdeMacBook-Pro:~ icarus$ java -version java version "1.8.0_144" Java(TM) SE Runtime Environment (build 1.8.0_144-b01) Java HotSpot(TM) 64-Bit Server VM (build 25.144-b01, mixed mo
which javac 返回/usr/bin/javac file /usr/bin/javac 返回/usr/bin/javac: symbolic link to `/etc/alternatives/javac' 然后file /etc/alternatives/javac 返回/etc/alternatives/javac: symbolic link to `/usr/lib/jvm/java-6-sun/bin/javac' 然后file /usr/lib/jvm/java-6-su