Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Eclipse Export JavaFX Project to Runnable Jar File - Nothing is Showing up?(I export from Eclipse as a "Runnable Jar File", double click the .jar file, and it never opens the program.)
Eclipse Export JavaFX Project to Runnable Jar File - Nothing is Showing up? [message #1837921] Wed, 10 February 2021 15:16 Go to next message
Aaron Esteban is currently offline Aaron EstebanFriend
Messages: 3
Registered: February 2021
Junior Member
I am new to using Eclipse, JavaFx, and the Java language in general (came from VB.NET, Javascript, & PHP background).

So, I'm trying to do a simple test where I export a very simple JavaFX program in Eclipse, but I keep getting the following error message inside of the command line when I try to test to see why the exported .jar file never appears or never opens up when I double click on the .jar file to run it:

"JavaFX runtime components are missing, and are required to run this application"

I have tried to export the project as a "Runnable Jar File", but only to no avail. This must be a common issue, no?

I'd greatly appreciate any support.
Re: Eclipse Export JavaFX Project to Runnable Jar File - Nothing is Showing up? [message #1837925 is a reply to message #1837921] Wed, 10 February 2021 18:17 Go to previous messageGo to next message
Eitan Rosenberg is currently offline Eitan RosenbergFriend
Messages: 140
Registered: October 2018
Senior Member
Hi,

The way I managed to use JavaFX is using Maven.

I just put:
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-web</artifactId>
<version>15.0.1</version>
</dependency>

And almost all JavaFX stuff is known to the project.

In addition, I add module-info.java with the content:

requires transitive javafx.base;
requires transitive javafx.controls;
requires transitive javafx.graphics;
requires transitive javafx.media;
requires transitive javafx.web;

I know this is short (Zoom is also an option).

Regards.




Re: Eclipse Export JavaFX Project to Runnable Jar File - Nothing is Showing up? [message #1838054 is a reply to message #1837925] Mon, 15 February 2021 02:40 Go to previous messageGo to next message
Aaron Esteban is currently offline Aaron EstebanFriend
Messages: 3
Registered: February 2021
Junior Member
Can you give me an example starting from point A? I'm not familiar with modules yet. I have very little experience with Maven too, although I have gotten my toes a little damp in it. Thanks.

Eitan Rosenberg wrote on Wed, 10 February 2021 18:17
Hi,

The way I managed to use JavaFX is using Maven.

I just put:
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-web</artifactId>
<version>15.0.1</version>
</dependency>

And almost all JavaFX stuff is known to the project.

In addition, I add module-info.java with the content:

requires transitive javafx.base;
requires transitive javafx.controls;
requires transitive javafx.graphics;
requires transitive javafx.media;
requires transitive javafx.web;

I know this is short (Zoom is also an option).

Regards.





Re: Eclipse Export JavaFX Project to Runnable Jar File - Nothing is Showing up? [message #1838057 is a reply to message #1838054] Mon, 15 February 2021 05:40 Go to previous message
Eitan Rosenberg is currently offline Eitan RosenbergFriend
Messages: 140
Registered: October 2018
Senior Member
Hi,

I suggest we use Zoom. It is much simpler.

Can you send your email or phone (for WhatsApp) so I can invite you for Zoom meeting ?

Regards.
Previous Topic:Are There Any Relevant JavaFX Deployment Tutorials For 2021?
Next Topic:How do I stop Content Assist errors
Goto Forum:
  


Current Time: Thu Apr 25 12:47:03 GMT 2024

Powered by FUDForum. Page generated in 0.03910 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top