Thanks a lot man, I spent hours trying to make it work, you solved the issue in just 5 minutes, you earned yourself a subscriber and a follower, keep up the good work buddy.
This has been the most frustrating thing ever. I for the life of me can not get this to work man. So discouraging. gone through so many tutorials and guides and it just doesnt work
Thank you so much! All the other tutorials asked to add the user library to Classpath. Mine only worked in the modulepath as well. Why is that and what's the difference?
hi! sir sorry am from Africa - Tanzania, i faced with a challenge to create javafx frame, indeed i tried to follow those steps you shown here but not yet solved, still red underlining me on package section what should I do?
Would anybody know why I get the following error? Graphics Device initialization failed for : es2, sw Error initializing QuantumRenderer: no suitable pipeline found
Sounds like a network issue. A quick google search provides a couple of possible solutions: stackoverflow.com/questions/12715215/eclipse-marketplacediscoverystrategy-failed-with-an-error
Hey, I did the same thing but ended with the error which I am not able to solve Error occurred during initialization of boot layer java.lang.module.FindException: Module javafx.controls not found below is my code package application; import javafx.application.Application; import javafx.scene.Scene; import javafx.scene.control.Label; import javafx.scene.image.Image; import javafx.scene.image.ImageView; import javafx.scene.layout.FlowPane; import javafx.scene.text.Font; import javafx.scene.text.FontPosture; import javafx.scene.text.FontWeight; import javafx.stage.Stage; public class Tutorial extends Application {
public void start(Stage primaryStage) { // Create a FlowPane FlowPane flowPane = new FlowPane(); flowPane.setHgap(10); // Horizontal gap between nodes flowPane.setVgap(10); // Vertical gap between nodes // Create labels and set the font Label label1 = new Label("Image 1"); label1.setFont(Font.font("Times New Roman", FontWeight.BOLD, FontPosture.ITALIC, 20)); Label label2 = new Label("Image 2"); label2.setFont(Font.font("Times New Roman", FontWeight.BOLD, FontPosture.ITALIC, 20)); // Load images (provide the correct image file paths) Image image1 = new Image("C:\\Users\\DELL\\eclipse-workspace\\FlowPane\\src\\application\\image1.png"); Image image2 = new Image("C:\\Users\\DELL\\eclipse-workspace\\FlowPane\\src\\application\\image2.png"); // Create ImageViews for each image ImageView imageView1 = new ImageView(image1); imageView1.setFitWidth(200); imageView1.setFitHeight(200); ImageView imageView2 = new ImageView(image2); imageView2.setFitWidth(200); imageView2.setFitHeight(200); // Add labels and images to the FlowPane flowPane.getChildren().addAll(label1, imageView1, label2, imageView2); // Create a scene and set it on the stage Scene scene = new Scene(flowPane, 400, 400); primaryStage.setScene(scene); primaryStage.setTitle("Image Display"); primaryStage.show(); } public static void main(String[] args) { launch(args); } }
IDK what I'm doing wrong but I keep getting this error Exception in thread "main" java.lang.IllegalArgumentException: expected file name as argument at javafx.graphics@21.0.2/com.sun.javafx.css.parser.Css2Bin.main(Css2Bin.java:40)
Error occurred during initialization of boot layer java.lang.module.FindException: Module javafx.controls not found did all the steps still can't run main or my code
If you're unfortunate enough to still need help on this a year later, I had the same error. What you can do instead is dump all the external jar files from the JavaFX lib onto the module path directly rather than linking the user library instead. That's the only way I got it working.
@@whitefang20 If you're unfortunate enough to still need help on this a year later, I had the same error. What you can do instead is dump all the external jar files from the JavaFX lib onto the module path directly rather than linking the user library instead. That's the only way I got it working.
When I click run I got this error Exception in thread "main" java.lang.IllegalArgumentException: expected file name as argument at javafx.graphics@20/com.sun.javafx.css.parser.Css2Bin.main(Css2Bin.java:40)
Thank You! Now I can breathe easier that my class assignment finally compiled! I'm now hitting the subscribe button! Greetings from New York City!
Thanks a lot man, I spent hours trying to make it work, you solved the issue in just 5 minutes, you earned yourself a subscriber and a follower, keep up the good work buddy.
I have been struggling with this for hours and your video helped me a lot. Thank you very much
I've been trying to get it to work for a couple days now, I was just missing the creating a user library step. Thank you
Thanks bro, eclipse is hard to work with, but this worked perfectly!
Glad it helped!
Thank you so much!! I was really struggling with this, but your video enabled me to do it so easily!
Glad it helped : )
Thanks Alooooot Sir, You literally saved my life with this video ❤
I dont have the option to choose javafx after installing the package from marketplace...
i have been struggling for hours thanks a looooooooooot man
It doesnt work. I get this error: The type javafx.application.Application is not accessible
Tysm! Needed this for college! 🤩
You're my savior, thanks a bunch for this tutorial!
Great, it works, thank you bro.
Last part helped me out so much man, thanks for the guide.
ok you are just the G.O.A.T thx man
This has been the most frustrating thing ever. I for the life of me can not get this to work man. So discouraging. gone through so many tutorials and guides and it just doesnt work
Did it work for you?
Thank you for this! JavaFX is required for a class I'm taking but they don't bother explaining how to get JavaFX to work.
I know what you mean. 😅
I don't have the classpath option in java build path
Thanks alot bro, finally I can handle it.
Thank you very much
you really help me to fix the problem, Thank You
thanks a lot you make very easier
Excellent, I got my problem solved.
Greatness 👏
Very helpful, please consider making more Java tutorials too, thanks
Will do!
Thanks bro.
It worked for me.
Thank you so much! All the other tutorials asked to add the user library to Classpath. Mine only worked in the modulepath as well. Why is that and what's the difference?
did you ever find an answer?
Thanks man!
Thank you very much my brother :))
thank you man i love indians ❤❤❤❤❤❤❤❤
thank you so much you really saved me .
thank you so much for this video
hi! sir sorry am from Africa - Tanzania,
i faced with a challenge to create javafx frame, indeed i tried to follow those steps you shown here but not yet solved, still red underlining me on package section what should I do?
Thank you! It was useful
thanks a lot
thank u it really works
Would anybody know why I get the following error?
Graphics Device initialization failed for : es2, sw
Error initializing QuantumRenderer: no suitable pipeline found
did you figure it out? I have the same error
When create a new project, JavaFx did not show up
who found his file error he should select Main - application in the beginning in your first run , and choose javaSE-12 when you creating your project
Thank you so much , i did it
For some reason my eclipse 2022-09 cannot open the Eclpise Marketplace it says MarketPlaceDiscoveryStrategy failed with an error
Sounds like a network issue. A quick google search provides a couple of possible solutions:
stackoverflow.com/questions/12715215/eclipse-marketplacediscoverystrategy-failed-with-an-error
Thank you so much
Thank you!
It worked for me 👌
I can run the main function after I added my user lib "JavaFX" into module path.
Do I still need to go to "run config" and give the pathway?
Nope. If you aren't getting any error squiggles underneath your imports, you are good to go.
really helpful
Thanks a lot !!!
I can't find javafx in marketplace what could be the cause?
maybe the eclipse vesion.... idk
Hey, I did the same thing but ended with the error which I am not able to solve
Error occurred during initialization of boot layer
java.lang.module.FindException: Module javafx.controls not found
below is my code
package application;
import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.control.Label;
import javafx.scene.image.Image;
import javafx.scene.image.ImageView;
import javafx.scene.layout.FlowPane;
import javafx.scene.text.Font;
import javafx.scene.text.FontPosture;
import javafx.scene.text.FontWeight;
import javafx.stage.Stage;
public class Tutorial extends Application {
public void start(Stage primaryStage) {
// Create a FlowPane
FlowPane flowPane = new FlowPane();
flowPane.setHgap(10); // Horizontal gap between nodes
flowPane.setVgap(10); // Vertical gap between nodes
// Create labels and set the font
Label label1 = new Label("Image 1");
label1.setFont(Font.font("Times New Roman", FontWeight.BOLD, FontPosture.ITALIC, 20));
Label label2 = new Label("Image 2");
label2.setFont(Font.font("Times New Roman", FontWeight.BOLD, FontPosture.ITALIC, 20));
// Load images (provide the correct image file paths)
Image image1 = new Image("C:\\Users\\DELL\\eclipse-workspace\\FlowPane\\src\\application\\image1.png");
Image image2 = new Image("C:\\Users\\DELL\\eclipse-workspace\\FlowPane\\src\\application\\image2.png");
// Create ImageViews for each image
ImageView imageView1 = new ImageView(image1);
imageView1.setFitWidth(200);
imageView1.setFitHeight(200);
ImageView imageView2 = new ImageView(image2);
imageView2.setFitWidth(200);
imageView2.setFitHeight(200);
// Add labels and images to the FlowPane
flowPane.getChildren().addAll(label1, imageView1, label2, imageView2);
// Create a scene and set it on the stage
Scene scene = new Scene(flowPane, 400, 400);
primaryStage.setScene(scene);
primaryStage.setTitle("Image Display");
primaryStage.show();
}
public static void main(String[] args) {
launch(args);
}
}
What eclipse version did you use?
it doesn't work on eclipse 2020, I downloaded eclipse 2023 and it's working
thank you
both failed to work for me
Are you running on Mac?
thanks
thankssssss
provide the sample code please
yeah dude, i need that too
IDK what I'm doing wrong but I keep getting this error
Exception in thread "main" java.lang.IllegalArgumentException: expected file name as argument
at javafx.graphics@21.0.2/com.sun.javafx.css.parser.Css2Bin.main(Css2Bin.java:40)
Error occurred during initialization of boot layer
java.lang.module.FindException: Module javafx.controls not found
did all the steps still can't run main or my code
same here
@user-rj8pp4bd9s you have to create a "Java_fx Project". Not a Java Project! Look at 1:20
me too
If you're unfortunate enough to still need help on this a year later, I had the same error. What you can do instead is dump all the external jar files from the JavaFX lib onto the module path directly rather than linking the user library instead. That's the only way I got it working.
@@whitefang20 If you're unfortunate enough to still need help on this a year later, I had the same error. What you can do instead is dump all the external jar files from the JavaFX lib onto the module path directly rather than linking the user library instead. That's the only way I got it working.
When I click run I got this error
Exception in thread "main" java.lang.IllegalArgumentException: expected file name as argument
at javafx.graphics@20/com.sun.javafx.css.parser.Css2Bin.main(Css2Bin.java:40)
Thank you so much
Thank you!