Java Swing Application - Lauch4j version error

40 Views Asked by At

I am making a Java Application using Java Swing and Jframe with a external video library . I am using window 11 JDK 19.0.2 . I want to create standalone application I tried using Launch4j but it is giving version conflict. Window 11 and this version of Java dont come with JRE seperatly how can create portable standalone project

I had JRE version 17 so I downgraded Java version 17 I am still getting error

Error: LinkageError occurred while loading main class com.example.swing.panel.Panel
    java.lang.UnsupportedClassVersionError: com/example/swing/panel/Panel has been compiled by a more recent version of the Java Runtime (class file version 63.0), this version of the Java Runtime only recognizes class file versions up to 61.0

I tried intalling java 17 create JAVA HOME path but same error. My system still shows Java 19

0

There are 0 best solutions below