I created a jar file with IntelliJ. I tried to open it with the cmd. But i got java.lang.UnsupportedClassVersionError because i build the jar with JDK 15 and it tried open it with Java 8, so i tried open it with Java 15 and got this Error: Unable to initialize main class sample.JobegaGUI Caused by: java.lang.NoClassDefFoundError: com/itextpdf/layout/element/IBlockElement
I used this command in the folder where the jar is saved. I hoped the command was right.
"C:\Program Files\Java\jdk-15.0.2\bin\java" -jar Jobega.jar
I'm using iText7-Core-7.1.3
I don't know what i can do anymore. I hope you can help me. Just say if you need to see some files.