NetBeans使用哪个java编译器? [英] Which java compiler is used by NetBeans?

查看:271
本文介绍了NetBeans使用哪个java编译器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我告诉NetBeans(6.9)在保存时编译,NetBeans警告我编译的类与使用JDK编译器编译的类不同。 Java平台在同一对话框中设置为JDK 1.6。 NetBeans使用哪个编译器?为什么NetBeans不使用JDK编译器?



$像eclipse一样,Netbeans不使用标准 javac ,因此它可以提供增量编译和



与Eclipse(使用自己的Eclipse Java编译器)不同,Netbeans实际上使用 javac

strong>用于编译,语法高亮和错误检测。这是一个很好的优势,因为Netbeans能够处理所有最新的Java语言特性,并忠实地再现javac行为的任何细微差别或错误。



sources:




If I tell NetBeans (6.9) to compile on save, NetBeans warns me the compiled classes are not identical to classes compiled with JDK's compiler. The Java platform is set to "JDK 1.6" in the same dialog. Which compiler is used by NetBeans? Why doesn't NetBeans use the JDK compiler?

解决方案

Like Eclipse, Netbeans does not use standard javac so that it can offer incremental compilation and compilation of classes containing methods that have syntax errors.

Unlike Eclipse (which uses its own Eclipse Java Compiler), Netbeans actually uses the internal API of javac for compiling, syntax highlighting, and error detection. This is a nice advantage, in that Netbeans is able to handle all of the latest Java language features and faithfully reproduces any nuances or bugs of javac's behavior.

sources:

这篇关于NetBeans使用哪个java编译器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆