carmine-alberto / ing-sw-2020-alberto-battiato-betti

0 stars 0 forks source link

final jar crashes #5

Closed ingconti closed 4 years ago

ingconti commented 4 years ago

ingconti@MacBookPro-32GB cil % java -jar /Users/ingconti/Downloads/AM49-Client.jar
Error: LinkageError occurred while loading main class it.polimi.ingsw.Client java.lang.UnsupportedClassVersionError: Preview features are not enabled for it/polimi/ingsw/Client (class file version 58.65535).

carmine-alberto commented 4 years ago

README:

Server You can launch the server with the command java --enable-preview -jar .\AM49-Server.jar

Client Once found the client jar, the it will be enough to type java --enable-preview -jar .\AM49-Client.jar

CLI In order to use this game mode it will be necessary to insert the parameter -CLI when launching the jar file GUI To play in GUI game mode, there are no other parameters to add.

Right there, --enable-preview is missing. Should we remove Java 14 preview features from our code (nothing too serious, text blocks to turn into "first line\nsecond line\netc...") ?

ingconti commented 4 years ago

simply stay prepared of a JAR non functioning on older VMs, eventually during exams.