使JavaFX编译为Java 1.6级源代码

时间:2021-11-12 10:38:50

How do I make JavaFX with netbeans compile my code to 1.6 level compliance.

如何使用netbeans制作JavaFX将我的代码编译为1.6级合规性。

At the moment it seems to be hard coded to 1.5 levels - stopping me from using useful tools in java.awt.Desktop (and the like)

目前它似乎被硬编码为1.5级 - 阻止我在java.awt.Desktop中使用有用的工具(等等)

2 个解决方案

#1


Remember - because JavaFX must run on the Apple Java run-time which currently is Java 1.5 - JavaFX can't compile to Java 1.6.

请记住 - 因为JavaFX必须在Apple Java运行时运行,该运行时当前是Java 1.5 - JavaFX无法编译为Java 1.6。

Thus it likely will change in the future so that it can compile to Java 1.6.

因此它可能会在将来发生变化,以便它可以编译为Java 1.6。

#2


Here's a good explanation by Stephen Chin: http://steveonjava.com/2009/01/02/hacking-javafx-10-to-use-java-16-features/

以下是Stephen Chin的一个很好的解释:http://steveonjava.com/2009/01/02/hacking-javafx-10-to-use-java-16-features/

Also, Steve's blog on JavaFX is great if you're getting into the new language.

此外,如果您正在使用新语言,Steve的JavaFX博客非常棒。

#1


Remember - because JavaFX must run on the Apple Java run-time which currently is Java 1.5 - JavaFX can't compile to Java 1.6.

请记住 - 因为JavaFX必须在Apple Java运行时运行,该运行时当前是Java 1.5 - JavaFX无法编译为Java 1.6。

Thus it likely will change in the future so that it can compile to Java 1.6.

因此它可能会在将来发生变化,以便它可以编译为Java 1.6。

#2


Here's a good explanation by Stephen Chin: http://steveonjava.com/2009/01/02/hacking-javafx-10-to-use-java-16-features/

以下是Stephen Chin的一个很好的解释:http://steveonjava.com/2009/01/02/hacking-javafx-10-to-use-java-16-features/

Also, Steve's blog on JavaFX is great if you're getting into the new language.

此外,如果您正在使用新语言,Steve的JavaFX博客非常棒。