• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Tim Cooke
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
Saloon Keepers:
  • Piet Souris
Bartenders:

Online Java IDE that supports JavaFX

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Does anyone know of an Online Java IDE that supports JavaFX? Something like the IDE at TutorialsPoint, but that can compile and run JavaFX code.

Thanks
 
Sheriff
Posts: 7126
185
Eclipse IDE Postgres Database VI Editor Chrome Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Not sure what you mean by "supports JavaFX", but Eclipse has IDEs that are in the cloud, and you can build JavaFX project with it.

https://www.eclipse.org/ide/

There are probably others too.
 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for the quick reply. I guess I should be more specific. The online part is not important to me. I was looking for a way ton compile and run JavaFX programs without all of the configuration setup. There is no way my students are going to be able to follow all of the necessary steps. I have not gotten any to work myself since Java 12 came out without installing an earlier version of Java. The last tutorial I trie has the author say he had not had any success with any Javas beyond Java 11. In the past I used a preconfigured Eclipse distribution found at https://efxclipse.bestsolution.at/install.html but it also does not work with later versions of Java. I have to ask them to install Java 8 to do this one project. So I should have worded my question as Is there a preconfigured Eclipse that will run JavaFX without configuration steps with Java 14? Or maybe an online Java IDE already set up for JavaFX.

Sorry for the new screen name. It insisted I needed to enter one and would not let me use my original name.

Thanks
 
Bartender
Posts: 15743
368
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I strongly recommend creating a Maven project in NetBeans 11. All the configuration you need is in a single POM XML file that you can create ahead of time and distribute to your students. NetBeans natively understands Maven, so all your students would need to do is open the file through NetBeans' open project menu action, and start coding.

Most of the work would be in installing Java correctly.

Give me a bit and I'll see if I can write you a good POM to start with.
 
Knute Snortum
Sheriff
Posts: 7126
185
Eclipse IDE Postgres Database VI Editor Chrome Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This website...

https://openjfx.io/openjfx-docs/

...has instructions on how to get a JavaFX environment up and running in several configurations.  Click on the Netbeans IDE link on the left and then select non-modular with Maven.  Or Stephan may have a simpler way.  
 
Stephan van Hulst
Bartender
Posts: 15743
368
  • Likes 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I made a template application. You can find it attached in this post. You can immediately open it in NetBeans using the File -> Open Project... wizard.

So what each student needs to do is the following:

  • Download and unpack OpenJDK 11+ (Linux, Mac OS X, Windows).
  • Set the JAVA_HOME environment variable to the OpenJDK installation folder.
  • Install NetBeans 11 (Linux, Mac OS X, Windows).
  • Install Gluon Scene Builder (Linux DEB, Linux RPM, Mac OS X, Windows).
  • In NetBeans, under Tools -> Options -> Java -> JavaFX, set the location of the Scene Builder installation folder. Restart NetBeans.

  • Source files are located under Source Packages. FXML files and localization bundles are located under Other Sources -> src/main/resources. If you double-click on a .fxml file, it will open the Scene Builder.

    You may want to change the package names in the application. Make sure you also change the javafx.mainClass property in the pom.xml file.
    Filename: Example-JavaFX-Assignment.zip
    File size: 5 Kbytes
     
    Jill Adams
    Greenhorn
    Posts: 3
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    OK. Thanks. I will check this out ASAP. It might be this weekend due to some root canal complications. Lots of fun.
     
    Jill Adams
    Greenhorn
    Posts: 3
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    Thanks, Stephen. That worked fine. I would still like to find a way to do this in Eclipse with Java 14 or even later. Has anyone heard of a preconfigured Eclipse distribution like the one found at https://efxclipse.bestsolution.at/install.html but that will work with later versions of Java?

    Thanks.
     
    reply
      Bookmark Topic Watch Topic
    • New Topic