error in tutorial
Ty Young
youngty1997 at gmail.com
Fri Dec 27 06:59:20 UTC 2019
Told them about this over a(2?) year ago. Java 9 Modules do not accept unsupported file formats such as ZIP files(nor have they ever) and will throw an error if a module folder contains them.
Not only does this cause this issue, but it violates standards: in no OS will you find zip files containing source code mixed in with the libraries themselves. Take a look in /usr/lib, you won’t find any.
Fixing this issue on the build side literally only requires a one line Gradle build file change so that the output of the src.zip is the root of the SDK build and not the libs folder. It would take less than a minute to fix, literally.
The excuse for not fixing this at the time was: “it’s the way we’ve always done it”. Maybe Oracle/Gluon have stopped smoking shrooms and are willing to fix this now.
From: David Green
Sent: Thursday, December 26, 2019 12:24 PM
To: openjfx-dev at openjdk.java.net
Subject: error in tutorial
This step fails:
3\. Create a library
Go to File -> Project Structure -> Libraries and add the JavaFX 13 SDK
as a library to the project. Point to the lib folder of the JavaFX SDK.
The src.zip located in this package lib will cause the build in IJ to fail. I
don't know why, since it is source, albeit zipped.
To get the project to build, I had to remove it. I placed it in a new src
folder I created at the same level as lib in the sdk.
More information about the openjfx-dev
mailing list