JFXtras 和 Netbeans 编译器问题

发布于 2024-09-11 18:07:03 字数 1026 浏览 2 评论 0 原文

有人能够引导我完成将最新的 JFXtras 包添加到 Netbeans 项目中的正确方法吗?我不确定我做错了什么...是否导入不正确,实施不正确,或者只是下载了错误的 jar 文件。我正在使用 JavaFX 1.3 和 NetBeans 6.9。

我已经能够让 NetBeans 识别库中的组件(我输入 XCustomNode,它提示我从 org.jfxtras.scene 导入。)但是,在尝试构建/运行时,我收到编译器错误,例如以下内容:

Note: An internal error has occurred in the OpenJFX compiler. Please file a bug at the Openjfx-compiler issues home (https://openjfx-compiler.dev.java.net/Issues) after checking for duplicates.  Include in your report:
- the following diagnostics
- file C:\Documents and Settings\me\Local Settings\Temp\javafx_err_4220242024568343160.txt
- and if possible, the source file which triggered this problem. Thank you. C:\Documents and Settings\me\My Documents\NetBeansProjects\project\src\input\NumberWithLabelNode.fx:24: cannot access com.sun.javafx.runtime.location.ObjectVariable class file for com.sun.javafx.runtime.location.ObjectVariable not found public class NumberWithLabelNode extends XCustomNode { 1 error

我认为我真的不需要向 Openjfx 报告此问题...我的直觉说我丢失了一个文件。

Would somebody be able to walk me through the proper way of adding the latest JFXtras package to a project in Netbeans? I'm not sure what I'm doing wrong... whether it be importing incorrectly, implementing incorrectly, or just simply downloading the wrong jar files. I'm using JavaFX 1.3 and NetBeans 6.9.

I've been able to get NetBeans to recognize the components in the library (I type XCustomNode, and it prompts me to import from org.​jfxtras.​scene.) Upon trying to build/run, however, I get a compiler error such as the following:

Note: An internal error has occurred in the OpenJFX compiler. Please file a bug at the Openjfx-compiler issues home (https://openjfx-compiler.dev.java.net/Issues) after checking for duplicates.  Include in your report:
- the following diagnostics
- file C:\Documents and Settings\me\Local Settings\Temp\javafx_err_4220242024568343160.txt
- and if possible, the source file which triggered this problem. Thank you. C:\Documents and Settings\me\My Documents\NetBeansProjects\project\src\input\NumberWithLabelNode.fx:24: cannot access com.sun.javafx.runtime.location.ObjectVariable class file for com.sun.javafx.runtime.location.ObjectVariable not found public class NumberWithLabelNode extends XCustomNode { 1 error

I don't think I really need to go report this to Openjfx... my gut says I'm missing a file.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

メ斷腸人バ 2024-09-18 18:07:03

不确定您使用的是哪个版本的 JFXtras,但我在使用 0.7rc 版和 JavaFX 1.3 时取得了更好的成功。

除了确保 Common 和 Controls jars 在您的库中之外,我还必须添加 miglayout-3.7.jar 和 swing-worker-1.2.jar,它们可以在 项目下载页面

Not sure what version of JFXtras you're using, but I've had much better success with version 0.7rc alongside JavaFX 1.3.

In addition to making sure Common and Controls jars in in your library, I've had to add miglayout-3.7.jar and swing-worker-1.2.jar as well, available on the project downloads page

音栖息无 2024-09-18 18:07:03

您面临的问题是库版本不正确。您正在尝试使用使用 JavaFX 1.2.* 编译的 JFXtras,而您的项目正在使用 JavaFX 1.3.。正如您在官方网站上了解到的那样,JavaFX 尚不向后兼容。使用 JavaFX 1.3 获取更新的库或重建源代码。

The problem you are facing is incorrect version of library. You are trying to use JFXtras compiled with JavaFX 1.2.* and your project is using JavaFX 1.3.. As you can learn on official site, JavaFX is not backward compatible yet. Get newer library or rebuild sources with JavaFX 1.3.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文