0

I am trying to run a jar file build in intellij idea with maven framework in powershell.

java version "11.0.1" 2018-10-16 LTS
Java(TM) SE Runtime Environment 18.9 (build 11.0.1+13-LTS)
Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.1+13-LTS, mixed mode)

I'm trying to run jar and this happens.

PS E:\java\HowToProgram\ProjectTest\target> java -jar ProjectTest-1.0-SNAPSHOT.jar
Error: JavaFX runtime components are missing, and are required to run this application.

I configured the path for openjfx in System Variable's Path.

And this is not about configuring VMoption in IDE. I have to run that jar from powershell or cmd.

And thanks for help.

About Duplicate

This post shows how to compile and exec in maven environment added.

My problem is that i have package the jar now i have to run this in any java installed system. And this is not happening.

When I exec the jar file in powershell then this error occur.

Macklov
  • 3
  • 1
  • 1
  • 5
  • 2
    I believe JavaFX is not included anymore in the standard JRE/JDK distribution, starting from java 11? – Daniele Mar 02 '19 at 17:07
  • 1
    yes,but i have openjfx downloaded and included its path in system variable – Macklov Mar 02 '19 at 17:11
  • uhm, maybe duplicate of https://stackoverflow.com/questions/52467561/intellij-cant-recognize-javafx-11-with-openjdk-11 – Daniele Mar 02 '19 at 18:37
  • 2
    Possible duplicate of [IntelliJ can't recognize JavaFX 11 with OpenJDK 11](https://stackoverflow.com/questions/52467561/intellij-cant-recognize-javafx-11-with-openjdk-11) – Daniele Mar 02 '19 at 18:37
  • Thanks , but I have seen that already and this is not helpful for my problem. – Macklov Mar 03 '19 at 08:16
  • 1
    Apologies for duplicate, I wont able to find that before, I find it on https://stackoverflow.com/questions/52653836/maven-shade-javafx-runtime-components-are-missing – Macklov Mar 04 '19 at 10:33

0 Answers0