Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
-2 votes
0 answers
30 views

Why can't I create Image objects using JavaFX on IntelliJ when the image files are in a folder [duplicate]

Project Structure Right now, I think IntelliJ considers the images folder a package once it's inside src and a directory once its outside src. When I try to give the path to the images folder to ...
user2006's user avatar
0 votes
2 answers
61 views

Dependency of a JavaFX module to another Java Gradle module fails in IntelliJ

I am running IntelliJ IDEA Community Edition 2024.1.4 and want to create a simple project with multiple inter-dependent modules using Gradle and Java 21. The root directory contains a settings.gradle: ...
StepheZ's user avatar
  • 21
2 votes
1 answer
114 views

Newer JDK version is used but not recognized in JavaFX?

This is my maven build <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>...
SK19's user avatar
  • 160
-1 votes
1 answer
78 views

How can I run a local application using JavaFx on intellij?

/Users/ashwin/Library/Java/JavaVirtualMachines/openjdk-22.0.1/Contents/Home/bin/java --module-path ~/Downloads/javafx-sdk-17.0.11/lib. --add-modules javafx.controls,javafx.fxml -Djava.library.path=~/...
astrosshow's user avatar
0 votes
1 answer
49 views

javaFX toolkit not initialized while testing in junit 5

So i am making a school project with javaFX and i need to make test with junit 5. But when i try to run my test i get an ExceptionInitializeError because the "ToolKit" is not initialized. ...
DianH's user avatar
  • 1
0 votes
0 answers
30 views

Maven Could not resolve dependencies for project javafx artifacts couldn't be resolved [duplicate]

I'm using IntelliJ on Mac M2 for javaFX and I'm trying to run this command on the terminal "mvn clean compile javafx:run" but I get this error in the building process: <project xmlns=&...
The Bulletbroof Joker's user avatar
0 votes
1 answer
61 views

IntelliJ IDEA: Error occurred during initialization of boot layer java.lang.module.FindException: Module html2pdf not found

I am using Intellij 2024.1 to build a JavaFX application. And I need external libraries dependency html2pdf. I add it to file build.gradle. dependencies { testImplementation("org.junit....
Anh Tuan's user avatar
1 vote
1 answer
39 views

Scene builder failing to display custom TableView compiled with Java 17

I'm working on a javafx application so naturally I've had to use Scene Builder to display and manipulate fxml files. Everything seemed to be working fine until I decided to create a custom TableView ...
Ali Yahya's user avatar
0 votes
1 answer
159 views

How do i fix Error: JavaFX runtime components are missing, and are required to run this application

I am running a java program where it shows a JavaFX when I run the Main.java class. When I run the Main in my IntelliJ it works fine but after I build artifacts I can't run the jar file and get this ...
Numi's user avatar
  • 11
0 votes
0 answers
31 views

Error occurred during initialization of boot layer IntelliJ

Currently trying to create a GUI and run JavaFX but i got this error message: Caused by: java.lang.module.InvalidModuleDescriptorException: Time.class found in top-level directory (unnamed package not ...
a.slimmm's user avatar
0 votes
0 answers
47 views

Getting constant errors in IntelliJ IDEA Community Edition from many days. I need a solution

I'm making a desktop JavaFX Application, just started. Below is the gradle code and below that are the errors. Any working solution to these errors is well above appreciated. I have tried adding the ...
Sunny Dhanjal's user avatar
0 votes
1 answer
107 views

Intellij “Parsing Java” notification, slow to build JavaFX project after MacOS Sonoma Upgrade

Recently I upgraded MacOS from Monterey to Sonora. One of issues after upgrading is slowness in the build process to launch JavaFX window in debug “Run” mode. Anytime I make a change to the code, ...
mcs75's user avatar
  • 489
0 votes
2 answers
65 views

Code suggestions not working on IntelliJ IDEA for fxml files

Autocompletion/code suggestions for .fxml files in IntelliJ IDEA are not working. I tried to open project on other machines with latest IntelliJ IDEA (2024.1), it works. I using IntelliJ IDEA 2022.3.3
stevegrkek's user avatar
1 vote
2 answers
6k views

Secure coding is not enabled for restorable state! Enable secure coding by implementing NSApplicationDelegate.applicationSupportsSecureRestorableState

i'm coding a program using java and javaFx on IntelliJ i have a macbook with macOS Sonoma 14.4 when i run the code with maven i have this issue: WARNING: Secure coding is not enabled for restorable ...
giacomo giaco's user avatar
2 votes
0 answers
25 views

Setting up MongoDB with JavaFX in Intellij, MongoDB external Jar files throwing errors [duplicate]

Background I am trying to run a MongoDB Database Accessor file in a JavaFX file on IntelliJ along with a basic main file, so far to connect with MongoDB I have added these external MongoDB jars to the ...
Light's user avatar
  • 45

15 30 50 per page
1
2 3 4 5
56