Stephan van Hulst wrote:Great!
Please show me your pom.xml, your module-info.java, and tell me what operations you perform to build and run your application.
I decided not to go with that solution due to future updates when I start to learn networking and have multiple devices connect to the database.
Stephan van Hulst wrote:As for why your application is stuck, I couldn't really tell you. But I think in another post you mentioned that you wanted to make it easier for your customers to install a database, so couldn't you just sidestep the entire issue by using an embedded database instead of MySQL?
I downloaded JavaFX explicitly and then I added its Jars in a custom user library to my project. Any project I start I need to add it manually to that project or it does not work
Stephan van Hulst wrote:Did you download JavaFX explicitly, did it come with your JDK or did it come with Eclipse?
Stephan van Hulst wrote:Can you use an unzipper to unpack the JAR and post the contents of META-INF/MANIFEST.MF?
Done that and it has no effect on my project, my application works as supposed to in eclipse but once I export it into a jar it won't launch and when I tried running it using command prompt I got this instead of the error i got last time
Stephan van Hulst wrote:It appears that way, but I'm suspicious of the JavaFX SDK entry on the class path. Can you remove it from the class path without removing it from the module path?
Stephan van Hulst wrote:Does your project contain a pom.xml file? It's the project descriptor for a Maven build, which I'm sure Eclipse can handle these days.
Maven will make it significantly easier to understand and modify your build. If your project doesn't use Maven, I can't help you further because I'm not an Eclipse user.
I as just relying on my IDE to do it it, it is eclipse 2021-12
Stephan van Hulst wrote:
So, to make your JAR executable you need to tell your build tool to add this entry to the manifest. The easiest way to do this depends on your build tool. Are you using Maven? Are you just relying on your IDE? What IDE are you using?
Got it, thank you
Stephan van Hulst wrote:Open a command line prompt in your operating system, navigate to the folder that contains the JAR, and then type the command that I gave you, replacing "jarname.jar" with the actual name of your JAR.
Stephan van Hulst wrote:Please tell us how you're executing the JAR. Are you simply double-clicking it? That won't work if the JAR is not executable.
Run the following command on the JAR and tell us if there's any output:
By it won't work I mean it would not launch when I try to open the Jar or the Exe nothing happens, a dialog which takes in a user name and password from the user should appear but it simply does not.
Stephan van Hulst wrote: On top of the excellent points that John has made, the most important thing you didn't tell us was how you know it doesn't work. ItDoesntWorkIsUseless.
Stephan van Hulst wrote: I want to point out that a common reason that applications don't work when running them outside of your IDE is that you might be using file paths to reference resources such as images. Static resources should be embedded into your application, not referenced as if they were separate files.