我在Eclipse中跟随两个导入时收到错误:
import javafx.scene.control.Alert;
import javafx.scene.control.Alert.AlertType;
Run Code Online (Sandbox Code Playgroud)
错误是:" 导入javafx.scene.control.Alert无法解析 ",第二个import语句也是如此.
我正在使用Eclipse版本:Luna Service Release 2(4.4.2)并安装了最新JDK 1.8(1.8.0_45)的e(fx)clipse.
其他与javafx相关的import语句没有问题,例如
import javafx.scene.control.Label;
import javafx.scene.control.ListView;
import javafx.scene.input.MouseEvent;
Run Code Online (Sandbox Code Playgroud) 我的css文件中有很多"未知属性"警告.
这可能是因为我安装了e(fx)clipse 2.0和Eclipse Web Developer Tools.
如果我用e(fx)clipse css编辑器打开css文件并添加/ SuppressWarnings /警告图标会改变其颜色(见下图).
然而:
如何禁用特定文件的"未知属性"警告或根本不用?
我的css文件不在"src"下,而是在"help"文件夹下.该帮助文件夹包含我的Eclipse插件和相应的css文件的html文件.=>这些文件不用于JavaFx/e(fx)clipse.
这是一篇相关文章,它并没有真正帮助我,但可能会给你更多信息:https: //www.eclipse.org/forums/index.php/t/515810/
我正在尝试部署一个非常基本的 JavaFX 应用程序。我只是在创建一个新的 JavaFX 项目并尝试将其部署到 .exe,但它给了我一个未找到模块的错误。
这是控制台日志:
Buildfile: D:\eclipseProjects\Test\build\build.xml
setup-staging-area:
[delete] Deleting directory D:\eclipseProjects\Test\build\externalLibs
[delete] Deleting directory D:\eclipseProjects\Test\build\project
[delete] Deleting directory D:\eclipseProjects\Test\build\projectRefs
[mkdir] Created dir: D:\eclipseProjects\Test\build\externalLibs
[copy] Copying 1 file to D:\eclipseProjects\Test\build\externalLibs
[copy] Copying 1 file to D:\eclipseProjects\Test\build\externalLibs
[copy] Copying 1 file to D:\eclipseProjects\Test\build\externalLibs
[copy] Copying 1 file to D:\eclipseProjects\Test\build\externalLibs
[copy] Copying 1 file to D:\eclipseProjects\Test\build\externalLibs
[copy] Copying 1 file to D:\eclipseProjects\Test\build\externalLibs
[copy] Copying 1 file to D:\eclipseProjects\Test\build\externalLibs
[copy] Copying 1 file to D:\eclipseProjects\Test\build\externalLibs
[mkdir] Created dir: D:\eclipseProjects\Test\build\project
[copy] Copying …
Run Code Online (Sandbox Code Playgroud) 我试图在eclipse(e(fx)clipse)中获取JavaFX,并且在这里尝试执行以下步骤:https ://www.eclipse.org/efxclipse/install.html 。但是,在第4步中,没有e(fx)clipse-IDE的选项,只有e(fx)clipse-Minimal JavaFX OSGi集成包。我安装了它,但是这似乎并不正确,因为在创建新项目时,它没有为JavaFX向导提供选项,这是我的最终目标。我想知道如何显示此向导并使用它创建一个JavaFX项目。
I have a Problem with JavaFX that I can't resolve after more than a day of researching on Google and different forums. I am currently learning Java with a tutorial and a few books, which has been going very nicely up until now.
My problem is that I can't get JavaFX to run in eclipse. I have installed the e(fx)clipse addon.
I have made sure that the JavaFX SDK is listed in the Libraries in the Java Buid Path and …
eclipse ×5
efxclipse ×5
java ×3
javafx ×3
css ×1
java-11 ×1
javafx-11 ×1
module-info ×1
validation ×1
xtext ×1