Comments (12)
Digging deeper, the crash is actually caused by the copy
task not existing. I'm using the gradle 2.2.1 wrapper.
This is the stacktrace: http://pastebin.com/28TntiKH
from javafx-gradle-plugin.
This plugin was made using gradle 2.10, could you check using that version?
from javafx-gradle-plugin.
It doesn't crash on 2.10. It builds the jar, but I found another issue with it packaging dependencies.
Here's the crash log: http://pastebin.com/VAj2aceD
Here's my build script: http://pastebin.com/0RuCf35C
from javafx-gradle-plugin.
@horfius Hi, thanks for the report. I'll check if I can push some changes to make it work with some older Gradle-version. Let me some time to figure out, what happened ... it's strange that some dependencies aren't there ... but still getting their path.
from javafx-gradle-plugin.
Just to make sure it hasn't something to do with gradle-version conflicts: could you try to delete that cache-folder? C:\Users\horfi\.gradle\caches\
from javafx-gradle-plugin.
So I deleted the cache and it still has the same issue. The files do exist, but the error actually exists in your tasks.
On line 96 of JfxJarTask you create a new directory for lib, but it leaves the path of the file as 'build\jfx\app\lib'. What if you try to do libDir.getAbsoluteFile().toPath.resolve(...)
on lines 123 and 153?
from javafx-gradle-plugin.
That doesn't change anything, the problem currently is that the dependency-file claims to not be existing:
:jfxJar
Couldn't copy dependency com.google.code.gson:gson:2.3.1
java.nio.file.NoSuchFileException: C:\Users\horfi\.gradle\caches\modules-2\files-2.1\com.google.code.gson\gson\2.3.1\ecb6e1f8e4b0e84c4b886c2f14a1500caf309757\gson-2.3.1.jar -> build\jfx\app\lib\gson-2.3.1.jar
at sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:79)
at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:97)
(...)
Couldn't copy dependency packager.jar
java.nio.file.NoSuchFileException: C:\Program Files\Java\jdk1.8.0_65\lib\packager.jar -> build\jfx\app\lib\packager.jar
at sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:79)
at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:97)
at sun.nio.fs.WindowsFileCopy.copy(WindowsFileCopy.java:205)
at sun.nio.fs.WindowsFileSystemProvider.copy(WindowsFileSystemProvider.java:278)
at java.nio.file.Files.copy(Files.java:1274)
is it possible that there are some problems with the user running the build-process? Maybe that user isn't able to read that files (permissions or something like that).
from javafx-gradle-plugin.
I am seeing this same statement in the logs:
:app:jfxJar
Adding 'deploy' directory wasn't successful, because it does not exist! (C:\workspace\GRADLE-POC\master-module\src\main\deploy)
:app:jfxNative
Adding 'deploy' directory wasn't successful, because it does not exist! (C:\workspace\GRADLE-POC\master-module\src\main\deploy)
from javafx-gradle-plugin.
@purringpigeon that's nothing to be concerned about, it just says that the folder wasn't existing, it has nothing to do with the dependencies. That folder src\main\deploy
isn't required to exist, as it only makes it possible to provide additional files for the packager/bundler.
from javafx-gradle-plugin.
@horfius Are you running your gradle-build with the --daemon
option?
from javafx-gradle-plugin.
No, I am not running with --daemon.
from javafx-gradle-plugin.
from javafx-gradle-plugin.
Related Issues (20)
- StackOverflow when running jfxJar and jfxRun HOT 1
- Smart way to make multiple builds ? HOT 1
- Icon is not picked up HOT 11
- java.nio.file.NoSuchFileException when running jfxNative in Windows HOT 6
- Deb package throws "ValidatorException: No trusted certificate found" HOT 6
- Initial build on NetBeans fails. HOT 11
- Java 10 jvmArgs not working HOT 1
- Javafx native app not working on Windows x32 HOT 2
- Debian bundler prefix installation directory HOT 3
- Adding additional configuration folder
- Finder got an error: Canβt get disk (-1728) HOT 2
- Fix Deprecation warnings HOT 1
- Execute codesign with force flag
- Java 11 Support HOT 2
- Add support for gradle java-library & its fine grained scopes
- jfxNative problem with openJDK HOT 9
- Make it compatible with Gradle 6.0 in future release HOT 6
- Multi project application - icon is not used HOT 4
- Current InnoSetup on Windows is incompatible with the default .iss file MinVersion value HOT 3
- Couldn't find Ant-JavaFX library HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from javafx-gradle-plugin.