MCRcortex / nekodetector

Nekoclient infection detector
MIT License
569 stars 42 forks source link

Snapshot error #20

Open Ulisesrec opened 1 year ago

Ulisesrec commented 1 year ago

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

0mega24 commented 1 year ago

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

Ulisesrec commented 1 year ago

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

0mega24 commented 1 year ago

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

Ulisesrec commented 1 year ago

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

0mega24 commented 1 year ago

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 commented 1 year ago

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

Ulisesrec commented 1 year ago

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 commented 1 year ago

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

0mega24 commented 1 year ago

yea

0mega24 commented 1 year ago

Issue

Huskydog9988 commented 1 year ago

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

0mega24 commented 1 year ago

switching to java 17 got it to work