本文介绍了Eclipse Helios中的JavaFX:IllegalArgumentException(Css2Bin.java:44)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
尝试在Eclipse Helios中启动并创建javafx 2.0时遇到此错误
I got this error while trying to start and make javafx 2.0 in eclipse helios
Exception in thread "main" java.lang.IllegalArgumentException: expected file name as argument
at com.sun.javafx.css.parser.Css2Bin.main(Css2Bin.java:44)
最近,我将逐步学习Eclipse IDE中的JavaFX 2.0入门.从此-网站
我不知道该如何解决,有人可以帮我吗?谢谢
Recently I'm following step-by-step to Getting Started with JavaFX 2.0 in Eclipse IDEfrom this - website
I don't know how to fix it, can somebody help me? Thanks
推荐答案
- 将jfxrt.jar添加到构建路径
- 转到引用库中的属性jfxrt.jar
- 运行/调试设置> Css2Bin
- 标记复选框:
- 搜索主类时包括系统库
- 搜索主类时包括继承的主线
- Add the jfxrt.jar to Build Path
- Go to properties jfxrt.jar in Referenced Libraries
- GO to Run/Debug Settings>Css2Bin
- Mark the check box:
- Include system libraries when searching for a main class
- Include inherited mains when searching for a main class
现在快乐!
这篇关于Eclipse Helios中的JavaFX:IllegalArgumentException(Css2Bin.java:44)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!