[mac java 环境搭建]2019-04-04

1-查看当前本机JVM版本:

/usr/libexec/java_home -V

2- 安装jdk1.7
  https://developer.oracle.com/java
  傻瓜安装即可;


3-res

装好1.7


4-装idea
  装社区版;配置jdk1.7;运行示例会出现:

objc[73488]: Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.7.0_80.jdk/Contents/Home/bin/java and /Library/Java/JavaVirtualMachines/jdk1.7.0_80.jdk/Contents/Home/jre/lib/libinstrument.dylib. One of the two will be used. Which one is undefined.

的错误;原因以及解决:
https://blog.csdn.net/lizhaowei213/article/details/68951671


推荐阅读更多精彩内容