简介:,我对ant相当陌生,我正在使用一个预先存在的构建jar。
问题:我必须编写它的构建过程的脚本,所以尝试在终端中运行它。在给出以下错误后,ant构建将失败:
default:
[taskdef] Could not load definitions from resource com/sun/javafx/tools/ant/antlib.xml. It could not be found.
BUILD FAILED
Problem: failed to create task or type javafx:com.sun.javafx.tools.ant:application
我正在使用JavaFX 11 (OpenFX)运行一些应用程序。这个应用程序是用IntellijIdea编写的,是用gradle构建的。在IDE中运行时,一切都很好。当构建jar时,它成功地构建了,但是当我试图执行它时,我得到了一个错误:
Exception in thread "main" java.lang.NoClassDefFoundError: io/reactivex/subjects/Subject
要构建一个罐子,我使用onslp.gradle-一jar插件。我的等级如下:
plugins {
id 'application'
id
我有一个用maven构建的java项目,在FreeBSD,Mac和Windows上编译和运行都很好。然而,当我试图在Linux上编译它时,我得到了以下错误: The following artifacts could not be resolved: org.openjfx:javafx-controls:jar:${javafx.platform}:12, org.openjfx:javafx-graphics:jar:${javafx.platform}:12, org.openjfx:javafx-base:jar:${javafx.platform}:12: Could not fi
我试图在Windows10、OracleJDK10.0.2和Eclipse上构建一个JavaFX应用程序。应用程序可以工作,如果我将其导出为可执行的jar,它也能工作。对于正确的构建,我打开“”,点击"Generate build.xml并运行“。生成失败时出现以下错误:
init-fx-tasks:
[taskdef] Could not load definitions from resource com/sun/javafx/tools/ant/antlib.xml. It could not be found.
do-deploy:
BUILD FAILED
C:\U
我在试着让我的罐子跑起来。它会构建,但当我尝试运行jar时,它会说:
no main manifest attribute, in Sagrada.jar
build.gradle
plugins {
id 'application'
id 'org.openjfx.javafxplugin' version '0.0.8'
id 'org.beryx.jlink' version '2.12.0'
}
apply plugin: 'java'
repositories
我是javafx的新手,我想开始构建一个项目,但问题是我不知道如何在javafx中使用绝对布局
在swing中,我只是写道:
setLayout(null);
JButton b = new JButton("Here is a test");
b.setBounds(20, 10, width, hieght); // here is how i use the absolute layout in swing
但在javafx中,事情要复杂得多
因此,我真的需要帮助。我已经在这里看到了所有的javafx布局:
但什么也帮不了我。
有谁可以帮我?