SceneBuilder Cannot Save - javafx

I am using Jetbrains with Scenebuilder, I have project connected to repository using Gitlab.
In Jetbrains it seem everything is ok, however when I use Scenebuilder and try and save I get the error ava.nio.file.AccessDeniedException: (project location)

Related

MySQL-Connector does not work after using JLink in a JavaFx project

I am trying to create an executable out of my JavaFX project that uses mysql-connector driver to connect to a local database. After i generate the JLink folder via the pom.xml file, when i run my application, the connection between the database and the app does not work (Running the application in the IDE makes everything work fine). I am using InteliJ as my IDE, MySQL for the database and i think the connector is a jar file without a module-info.jar file which is causing issues in JLink.
I did some digging and i found out that mysql-connector can not be added directly via Jlink. I've seen some workarounds (for example: moditect) but i still can't figure it out. Any help is greatly appreciated!
You can't use jlink to directly create an executable file if your application is not fully modular. However, you can use a combination of jdeps, jlink and jpackage to create an application bundle or an installer. You might want to have a look at this tutorial: https://github.com/dlemmermann/JPackageScriptFX

How to set application name at runtime

Whether I run my JavaFX application in the IDE or build and run the .jar, the application's name showing in the toolbar is basically the Main class :
I tried to build the artifact with IntelliJ and also with Maven ($ mvn clean package), but same result for both. I'm using JDK8 on Ubuntu.
Is there a way to change the application name/title?
Thanks.
As far as I know there is no programmatic way to set the application name in JavaFX. This can however be done when you package your application via the new jpackage tool (JDK 14).

How to run javafx with maven desktop application from a jar file outside Netbeans 11 on my laptop or another ones?

I am working on Netbeans apache 11.1. I developed so many desktop programs using java and could run them almost on any computer. But when I moved to JavaFX technology with maven I wanted to redevelop almost the same desktop apps using JavaFX, and everything worked fine into Netbeans 11.1. The problem is when I want to jar my apps and distribute them outside of Netbeans they actually do not work.
I tried everything I did in the past (which worked just fine) for instance: adding Class-Path and setting Main-Class to manifest but still does not work. I searched through a lot of forums and sites but still cannot run my app outside of Netbeans.
My code is as any code combination of JavaFX, Maven, CSS, and FXML. Everything works just fine into Netbeans. The problem is outside of it.
Although I've added openjfx-12.0.2_windows-x64_bin-sdk to windows environment path, when I attempted to run jar that's been generated by Netbeans using cmd I just get this ERROR: javafx runtime components are missing, and are required to run this application. ANY HELP PLEASE?
I don't know if I'm understanding your problem right (if not I'm sorry).
Runnable JAR JavaFX
What once helped me, was create a new run configuration (in intellij) with the main class and the JRE. After that I created a Run Maven Goal with the command line
assembly:single

Im building .jar of my program in InteliJ, but I added external .jar with JTatto LookAndFeel and the app doesn't work from desktop. How to repair it?

It's simple application. I'm pretty sure it doesn't work now from Desktop, because of external .jar added at the IDE.
Ok, basically just go in project settings, dependencies, add your jar (dont export) and then build normally
I had to create new project to make it work

scenebuilder 8.5 custom jar not load, can't open fxml

i download scenebuilder 8.5 java 8 version, before i used scenebuilder 8.4.1 without any problem.
With new one:
- custom jar does not appear in list
- open an fxml doesn't work (fxml created with scenebuilder 8.4.1 without any problem) even if i don't use my custom library
- no log error appears, just no reaction on open project action button???
I try to install again the application but without success.
When i open scenebuilder in intellij, it works.
I have two questions:
What should i check or do?
How can i download scenebuilder 8.4.1
i found why, it's a problem of my custom jar, i fix it and know it's ok

Resources