[英]How should I upgrade my Java compiler
When I run $ javac Simulator.java
then I get the following warning: 当我运行
$ javac Simulator.java
我收到以下警告:
warning: ./particle_simulator/Atom.class: major version 51 is newer than 50, the highest major version supported by this compiler.
I don't know why I suddenly get this warning as I haven't made substantial changes to my code. 我不知道为什么我突然得到这个警告,因为我没有对我的代码进行实质性更改。 Nevertheless, how do I upgrade my Java compiler?
不过,我如何升级我的Java编译器?
I'm running Mac OSX 10.7.5 and my Java version is below: 我正在运行Mac OSX 10.7.5,我的Java版本如下:
java version "1.6.0_65"
Java(TM) SE Runtime Environment (build 1.6.0_65-b14-462-11M4609)
Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-462, mixed mode)
Download the JDK from Oracle: http://www.oracle.com/technetwork/java/javase/downloads/ . 从Oracle下载JDK: http : //www.oracle.com/technetwork/java/javase/downloads/ 。 Make sure you get the OSX version.
确保获得OSX版本。 It has its own installer so installation should be pretty straight forward.
它有自己的安装程序,因此安装应该非常简单。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.