![]() If all went fine we can make a small change to the code. After a while, a window should appear showing a label with a single line of text: “Hello JavaFX World!”. Double click the run task from the list of tasks to launch the application on your desktop. In the Gradle Tasks view, select the project you just created in the Project combobox and it will load all the available gradle tasks.īefore deploying on mobile it’s easier to run the application on desktop first to verify there are no errors. You can find the view under the Gradle category. To get an overview of the different tasks, open the Gradle Tasks view by selecting Window→Show View→Other…. The jfxmobile-plugin provides a series of gradle tasks that can be used to run your application on any of the supported platforms. The project that is created by the plugin is a Gradle project, which already has the jfxmobile-plugin applied. There’s also the default JavaFX application class, so we’ll be able to run it without adding a single line of code. desktop for code that should only run on a desktop.main for code that is common to all platforms.If you are familiar with the JavaFXPorts project, you will see the different folders created: This is because the gradle build process will initially download all the dependencies of the project. Please note, creating a Gluon project for the first time, might take a while to complete. Click Finish to complete the creation of the Gluon project. Furthermore, the plugin will prepare the directory structure and necessary files for every selected platform. In the following step you can configure the name of the package and the name of the class that will be generated. The plugin will generate a JavaFX application class. Provide a name for the project, optionally choose a custom location to store the project and click Next. In Eclipse, click File→New→Project… and select Basic Gluon Application from the JavaFX category and click Next. Now that the plugin is installed, we can use it to create a sample application. Press Next again and accept the terms of the license agreements. Press Next and review the items that are going to be installed. ![]() e(fx)clipse is recommended as it adds a lot of functionality for JavaFX applications development. Select the Gluon package and optionally the e(fx)clipse package. Paste the following Update Site URL in the Work with: text field. Open Eclipse and choose Help→Install New Software…. Update SiteĪlternatively, you can install the Gluon Plugin by providing an update site. You can now continue to Creating a new Gluon Project. When the installation is completed, Eclipse will ask you to restart your IDE for the changes to take effect. Select the Gluon certificate and click OK to continue the installation. The Gluon Plugin will be downloaded and installed.ĭuring the installation process, Eclipse will ask you to trust the Gluon certificate. Press Finish to begin the installation of the plugin. Press Confirm and accept the terms of the license agreements. Press the Install button to begin the installation. Type gluon in the search field and press Go to find the plugin. Open Eclipse and choose Help→Eclipse Marketplace…. The easiest way to install the Gluon Plugin can be done through the Eclipse Marketplace. Because the Gluon Plugin for Eclipse generates Gradle projects based on the jfxmobile plugin, we advice you to read the prerequisites on the Getting Started section of the javafxports documentation website. Prerequisitesīefore installing the plugin, make sure that you have installed Eclipse Mars (4.5). In this post, we will briefly go through the installation process and explain how to create your first basic Gluon application that can be deployed on desktop, Android and iOS devices. The table below lists packages that are comprised in each profile.After having released the Gluon Plugin for both NetBeans and IntelliJ IDEA, we can proudly announce support for another major development platform: Eclipse. Each profile specifies a particular set of Java API packages and contains all of the APIs in profiles smaller than itself: compact1 is a subset of compact2, which is a subset of compact3, which in its turn is a subset of the full JRE. Three profiles that have been defined so far are named compact1, compact2, and compact3.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |