Home > Java > javaTutorial > body text

JavaFX development using Eclipse

WBOY
Release: 2023-09-12 21:53:01
forward
1004 people have browsed it

To set up JavaFx in eclipse, first make sure you have successfully installed eclipse and Java.

Maven dependency

To set up a JavaFX environment with maven dependencies, create a Java project in eclipse and convert it to a maven project as follows:

JavaFX development using Eclipse

Then add the following JavaFX dependencies in the pom.xml file and refresh the project.

<dependency>
   <groupId>org.openjfx</groupId>
   <artifactId>javafx-controls</artifactId>
   <version>14</version>
</dependency>
Copy after login

If you observe the Maven dependency directory, you can find the installed Jar files as shown below -

JavaFX development using Eclipse

Add the required Jar files manually

You can also add the required JAR files manually

  • Visit the JavaFX homepage and click the Download button.

  • You will be redirected to the page containing the JavaFX SDKs, choose the one compatible with your environment and install it.

  • Now, right click on the Java project and open the Java Build Path window as shown below -

  • JavaFX development using Eclipse

    ##In the Libraries tab of the Java Build Path window, click the

    Add External JAR... button and add the javafx-sdk-14 folder# from the download ##lib folder.

    JavaFX development using EclipseThen click the "Apply and Close" button and you can observe the downloaded JAR file in the project's

    Referenced Libraries

    directory.

    The above is the detailed content of JavaFX development using Eclipse. For more information, please follow other related articles on the PHP Chinese website!

    Related labels:
    source:tutorialspoint.com
    Statement of this Website
    The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
    Popular Tutorials
    More>
    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template
    About us Disclaimer Sitemap
    php.cn:Public welfare online PHP training,Help PHP learners grow quickly!