构建 snap 时如何添加 javafx sdk

问题描述

我正在尝试从我的 Javafx 项目中进行快照。我正在学习如何构建快照,所以不太了解它是如何工作的。我目前在 snap.yaml 中使用 ant 来构建,但是当我运行 snapcraft 命令时,我收到一个错误,它在我自己的系统上的目录中找不到 javafx-sdk。

我的问题是如何添加 sdk 以便它始终与 snap 的安装一起提供,或者我可以以某种方式以更好的方式构建这个项目吗?

错误

compile.module.apptest.production:
    [mkdir] Created dir: /root/parts/my-part/build/out/production/appTest
    [javac] /root/parts/my-part/build/module_apptest.xml:96: warning: 'includeantruntime' was not set,defaulting to build.sysclasspath=last; set to false for repeatable builds
    [javac] Compiling 2 source files to /root/parts/my-part/build/out/production/appTest

BUILD Failed
/root/parts/my-part/build/module_apptest.xml:96: /home/issenisse/Downloads/javafx-sdk-15.0.1/lib does not exist.

Snap.yaml

我尝试的最后一件事是在构建时添加 openjfx

name: test-app
base: core18 # the base snap is the execution environment for this snap
version: '0.1' # just for humans,typically '1.2+git' or '1.3.2'
summary: Single-line elevator pitch for your amazing snap # 79 char long summary
description: |
  This is my-snap's description. You have a paragraph or two to tell the
  most important story about your snap. Keep it under 100 words though,we live in tweetspace and your description wants to look good in the snap
  store.

grade: devel # must be 'stable' to release into candidate/stable channels
confinement: devmode # use 'strict' once you have the right plugs and slots

parts:
  my-part:
    # See 'snapcraft plugins'
    plugin: ant
    ant-buildfile: build.xml
    ant-openjdk-version: "11"
    source: .
    build-snaps:
      - openjfx

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...