nus-cs2103-AY2122S2 / forum

13 stars 1 forks source link

Failed smoke test but tested JAR file running successfully on macOS and Windows + Requesting for help to test JAR file #171

Closed Punpun1643 closed 2 years ago

Punpun1643 commented 2 years ago

I received an email that I failed the automated smoke test with the following errors across all platforms:

Error: LinkageError occurred while loading main class duke.Launcher java.lang.UnsupportedClassVersionError: duke/Launcher has been compiled by a more recent version of the Java Runtime (class file version 57.0), this version of the Java Runtime only recognizes class file versions up to 55.0

However, I have tested the JAR file by running the command as well as clicking to open. Both run successfully.

I think it was some problem with my build.gradle dependencies so I changed it slightly. Tested on both macOS and Windows and worked fine.

Edit: I made the mistake of building and compiling using Java 13.

I would appreciate if I could get some help testing my JAR file across all platforms 😊: https://github.com/Punpun1643/ip/releases/tag/v0.2

zhongfu commented 2 years ago

you're compiling & building with Java 13, not 11

Punpun1643 commented 2 years ago

Thanks! @zhongfu I completely overlooked that. I think it should work now!

kavxya commented 2 years ago

Hi! Can I ask how you changed the compile to Java 11?

yusufaine commented 2 years ago

@kavxya what I did was specify the what Java version to build on in my build.gradle

kavxya commented 2 years ago

Thank you so much! That fixed the LinkageError!