Unsupported Java Class Version
geneanalyst opened this issue · 1 comments
I'm running on Ubuntu LTS 20.04 and get the following error:
Exception in thread "main" java.lang.UnsupportedClassVersionError: RunDamageProfiler has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
However when I try to update java via : sudo apt install default-jre
I get the message: default-jre is already the newest version (2:1.11-72).
Next I made .jar executible as suggested: sudo chmod u+x DamageProfiler-1.1-java11.jar
However, running: java -jar /home/d/DamageProfiler/DamageProfiler-1.1-java11.jar -i ERR1427821.bam -r /media/d/LinuxDataHDD/HUMAN_REFERENCE_2022/GRCh37_latest_genomic.fna -o /media/d/LinuxDataHDD/ENA_DOWNLOADS
produces the same error as above
I was able to resolve this issue by making a different JDK version as the default version