【发布时间】:2014-12-12 23:16:21
【问题描述】:
我正在使用 e(fx)clipse 并按照此处列出的步骤http://code.makery.ch/java/javafx-8-tutorial-part7/ 当您单击“生成 ant build.xml”时没有任何反应......有人可以帮忙吗?如果没有人知道,有人可以帮我手动完成这项工作
这是 build.fxbuild 上的设置
我使用的是 eclipse 4.4
!SESSION 2014-10-18 18:46:48.482 -----------------------------------------------
eclipse.buildId=4.4.0.I20140606-1215
java.version=1.8.0_20
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_NZ
Command-line arguments: -os win32 -ws win32 -arch x86_64
!ENTRY org.eclipse.fx.ide.java6 4 0 2014-10-18 18:46:49.497
!MESSAGE FrameworkEvent ERROR
!STACK 0
org.osgi.framework.BundleException: Could not resolve module: org.eclipse.fx.ide.java6 [221]
Unresolved requirement: Require-Capability: osgi.ee; filter:="(&(osgi.ee=JavaSE)(version>=1.3)(!(version>=1.8)))"
at org.eclipse.osgi.container.Module.start(Module.java:434)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1582)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1561)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1533)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1476)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)
!ENTRY org.eclipse.e4.ui.workbench 1 0 2014-10-18 18:46:54.133
!MESSAGE Nothing to merge for "platform:/plugin/org.eclipse.e4.tools.emf.ui/fragment.e4xmi"
!ENTRY org.eclipse.e4.ui.workbench 1 0 2014-10-18 18:46:54.137
!MESSAGE Nothing to merge for "platform:/plugin/org.eclipse.e4.tools.emf.ui/fragment.e4xmi"
当我点击生成时,日志会弹出此错误
我想我应该注意到我也尝试使用 netbeans 创建一个 exe,但是运行时它会给我一个“man class 错误”但是当我通过 IDE 运行它时它没有任何问题......
【问题讨论】:
-
“应用程序类”中的值看起来错误,或者您没有遵循 Java 约定,即类以大写字母开头。也可以查看 Eclipse 的错误日志,看看是否有问题
-
我想我也有一个论坛帖子和你一起 XD 我们应该继续在论坛上并在这里编辑更多细节和解决方案吗?