nekodetector icon indicating copy to clipboard operation
nekodetector copied to clipboard

Snapshot error

Open Ulisesrec opened this issue 2 years ago • 12 comments

I tried to use the snapshot but i got this error

Error: LinkageError occurred while loading main class me.cortex.jarscanner.Main java.lang.UnsupportedClassVersionError: me/cortex/jarscanner/Main has been compiled by a more recent version of the Java Runtime (class file version 64.0), this version of the Java Runtime only recognizes class file versions up to 61.0

I think i have the latest version but it seems like not

I also tried to compile it but i don't know exactly how to do it, so any help would be nice

Edit: oh wait, i think i did compile it, because i had two snap files, and the second one don't give me the error

Ulisesrec avatar Jun 07 '23 21:06 Ulisesrec

How were you able to compile it? What did you use?

0mega24 avatar Jun 07 '23 21:06 0mega24

How were you able to compile it? What did you use?

I used ./gradlew build I read this from a closed thread, this worked for me

Ulisesrec avatar Jun 07 '23 21:06 Ulisesrec

and that is in the cmd prompt from the unzipped dir I am guessing

0mega24 avatar Jun 07 '23 21:06 0mega24

that is in the unzipped directory, yes also i'm using linux, you're using Windows i think?

Ulisesrec avatar Jun 07 '23 21:06 Ulisesrec

yea I am on win10 atm and am getting some strange results. I am getting build failures from the Detector.java file from the most recent release line 80, 83, 87

0mega24 avatar Jun 07 '23 21:06 0mega24

I got it to build switching to java 18 now I am unable to get it to run even with java 18?

0mega24 avatar Jun 07 '23 21:06 0mega24

Hmmmm i don't know about windows then sorry, but it does have a .bat file anyways better ask someone who has a better idea about it

Ulisesrec avatar Jun 07 '23 21:06 Ulisesrec

I got it to build switching to java 18 now I am unable to get it to run even with java 18?

You are trying to run the snapshot build right? that is in /build/lib

Ulisesrec avatar Jun 07 '23 21:06 Ulisesrec

yea

0mega24 avatar Jun 07 '23 21:06 0mega24

Issue

0mega24 avatar Jun 07 '23 21:06 0mega24

The project has been tested against v17. Maybe try switching to that version in the mean time?

Huskydog9988 avatar Jun 07 '23 21:06 Huskydog9988

switching to java 17 got it to work

0mega24 avatar Jun 07 '23 21:06 0mega24