javafx-gradle | Gradle JavaFX Plugin | Plugin library
kandi X-RAY | javafx-gradle Summary
kandi X-RAY | javafx-gradle Summary
This plugin will ultimately provide gradle build tasks for the JavaFX Deployment tools in the Java 7 JDK. Hopefully this plugin will also set conventions that a Maven Mojo could follow as well.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of javafx-gradle
javafx-gradle Key Features
javafx-gradle Examples and Code Snippets
Community Discussions
Trending Discussions on javafx-gradle
QUESTION
I'm using the JavaFX-Gradle-plugin to build the distribute-able binaries and the installer of a JavaFX application. When my application runs, I'm able to set the icon this way:
...ANSWER
Answered 2017-Dec-20 at 11:29There is a open pull request documenting this here
It says:
Customize IconsTo customize the icons used in a native bundle, you have to provide the icons for the appropriate bundle. The icons must follow the file name convention in order to get picked up.
Tip: Set the
verbose
setting to true, to have log which files are picked up from your deploy directory.
and for Microsoft Windows in particular:
WindowsIcon location:
src/main/deploy/windows
For Windows you can provide two different icons.
- application icon
- setup icon - the icon of the installer
| Type | Filename | | :---------------- |:------------------------- | | .exe icon | \.ico | | setup exe icon | \-setup-icon.bmp |
Despite what it says there, the correct path is src/main/deploy/packages/windows
as show in the adjusted-launcher-icon example.
QUESTION
I created a java 10 project with intelliJ, using gradle. I copied some stuff into it (some "AppFx" class using the library guava and javaFx, and a personal build.gradle file). I also added a module-info.java file in src/main/java with this content:
...ANSWER
Answered 2019-Jul-31 at 14:15The issue is Gradle still (as of 4.10-rc-2) doesn't have first-class support for Jigsaw modules. All the tasks will use the classpath, not the modulepath, when executing. This obviously will cause issues when trying to create a modular library/application (with module-info.java
).
If you want to use Jigsaw modules in your project you should read Building Java 9 Modules. Your scenario, as @nullpointer mentions, is best covered by this section of the linked document. The takeaway is to add the following to your build.gradle
file:
QUESTION
I made an app with JavaFX and it worked correctly when I build the project with the build button on IntelliJ IDE. However it doesn't work when I run from jar file generated from gradle JavaFX project and the following error is shown on console.
...ANSWER
Answered 2018-Sep-19 at 02:25The problem is this:
QUESTION
I am making a skeletton of a java project; the gradle build file has an annoying problem : tests are ran twice, one time by the task 'JUnitPlatformTest' and a second time by the task 'test'.
The first one seems to trigger the second, so I can't disable it, and I would like to keep the second one as there is a little difference between them : the first one is in the console (of intelliJ) and the second uses the integrated intelliJ window.
here is gradle.build
...ANSWER
Answered 2018-Aug-30 at 20:46According to this official website, ...
The JUnit Platform Gradle Plugin is deprecated
The very basic
junit-platform-gradle-plugin
developed by the JUnit team was deprecated in JUnit Platform 1.2 and will be discontinued in 1.3. Please switch to Gradle’s standard test task.
So you should remove this plugin from your build file and, if necessary, try to port the remaining settings to the test
task of the java
plugin.
QUESTION
I'm building a JavaFX application and I seem to be having trouble adding and using libraries like Gson or Apache Commons Lang. The libraries seem to add fine when referenced in my build.gradle
and Intellij also shows they're in my project.. Gradle also seems to run clean
and build
with no problems. The problem occurs when I actually run the app and click the button that triggers the event sub-routine where the problem begins. I also get errors like this, no matter the library I try to reference:
ANSWER
Answered 2018-May-17 at 21:50You miss apache commons-lang in your classpath. Add
QUESTION
I am packaging my app into exe with javafx-maven-plugin. x64 version works well. But then I package x86 version on 32-bit Windows 7 (running in VirtualBox if that's important) with 32-bit JDK 1.8.0_161 and 32-bit Maven. The resulting application installs, but fails to run, claiming that MSVCR100.dll is missing even though it is in the runtime\bin folder. I googled around and found out that this is a JDK bug that was supposedly fixed way back in u40. So why does this still happen? If I copy that dll manually next to the .exe it starts on one machine (again, in VirtualBox), but for some reason silently crashed on another (real one this time, fresh installation). Found an identical problem in javafx-gradle-plugin issues, though it got resolved when building on newest Win10 version, whereas I'm building on newest Win7.
If I just install Microsoft Visual C++ 2010 Redistributable Package then everything works, obviously, but I don't want user having to do that. So how do I copy .dll with Inno Setup script and how do I figure out the reason behind silent crashing?
...ANSWER
Answered 2018-Feb-09 at 06:35There may be another .dll on which MSVCR100.dll depends and which is not present on specific machine.
That is a reason why the Redistributable Package installs everything together.
Try to find another dependencies using http://dependencywalker.com/, it looks like you need more dlls than MSVCR100.dll.
Or simply install Redistributable Package on each machine. Installing it multiple times does not harm any application or system.
QUESTION
I'm actually using javafxpackager through the JavaFX-Gradle-Plugin, but I can't figure out the solution in plain javafxpackager, so, that would help as well.
How do I sign an MSI using javafxpackager? How do I specify the cert/key/whatever is needed?
In its documentation:
- https://docs.oracle.com/javase/8/docs/technotes/tools/unix/javafxpackager.html
- https://docs.oracle.com/javase/9/tools/javapackager.htm
I can see the options for Mac OS, such as: mac.signing-key-developer-id-app=key
but I don't see anything about signing the Windows MSI installer.
In this doc:
it acknowledges the need for signing it by saying:
If you plan to distribute your MSI package on the network, then consider signing it for the best user experience.
but there's no explanation on how to achieve this (compared to the Mac OS equivalent section).
...ANSWER
Answered 2018-Mar-23 at 17:44It turns out javafxpackager doesn't do this and you can simply sign an MSI after it's been generated:
https://pevma.blogspot.de/2014/02/signing-windows-installation-msi.html
https://howdididothatthingagain.blogspot.de/2013/02/burn-02-how-to-sign-msi-packages-and.html
QUESTION
I'm using the JavaFX packager through the JavaFX-Gradle-Plugin and I need to add a couple of Wix extension libraries to be able to run my app after install.
How do I achieve that?
According to the Wix documentation, by adding -ext WixUIExtension -ext WixUtilExtension
to the command line, but I don't see how to do it from the JavaFX packager nor JavaFX-Gradle-Plugin.
ANSWER
Answered 2018-Feb-09 at 19:30After looking into the responsible msi-bundler, I found this fragment:
QUESTION
AWT's TrayIcon
class has a method called displayMessage
that shows a native OS message that in Windows 10 looks like this:
when called like this:
...ANSWER
Answered 2017-Dec-15 at 12:37To change the pop-up text which in your posted screenshot is displayed as Java(TM) Platform SE binary
in your Blah.exe
to Blah
you could use for example the Resource Hacker™.
Change in the section Version Info
the value for FileDescription
to Blah
either interactive in the GUI or on commandline.
Find below a simple example which needs to be amended for your needs.
versioninfo.rc resource script containing the information for the VERSIONINFO resource
QUESTION
I'm building a JavaFX application and using the JavaFX packaging tools by means of the JavaFX-Gradle-plugin. I'm generating various launchers with this configuration:
...ANSWER
Answered 2017-Dec-11 at 13:37Out-of-the-box your request really is "impossible", but there is a solution, and some lines of explanation.
The OracleJDK/OpenJDK has some really confusing way of bundling all tools together (and I'm still struggling with my progress to get it compatible with JDK9, but this is mostly due to missing spare time for this project). The internal javapackager-libs contain some so called "bundler", which do the main work for preparing the right jfx-jar, generating all required installer-creation-files and copying the native launcher (the exe-file) to the right place with the right name. This has a lot of restrictions: the installer-creation-file contains a lot of hard-coded stuff, including file-extensions and such pieces.
I have created some small example-project for creating some OWN bundler, which you are required to re-implement for this: https://github.com/javafx-maven-plugin/javafx-maven-plugin/tree/master/src/it/23-simple-custom-bundler
You will need to copy-paste some stuff from this file: http://hg.openjdk.java.net/openjfx/8u-dev/rt/file/bb53ab0b66a0/modules/fxpackager/src/main/java/com/oracle/tools/packager/windows/WinExeBundler.java
Please take a close look to the used template, which can be at the resources-folder: http://hg.openjdk.java.net/openjfx/8u-dev/rt/file/bb53ab0b66a0/modules/fxpackager/src/main/resources/com/oracle/tools/packager/windows/template.iss#l42
Please take care of the license these files are, I can not give legal advices, just spreading my thoughts about it here.
Disclaimer: I'm the creator of the javafx-gradle-plugin
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install javafx-gradle
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page