CategoricalData / CQL

Categorical Query Language IDE
http://categoricaldata.net
299 stars 22 forks source link

Installation errors when running `java -jar cql.jar` #72

Closed zunction closed 2 years ago

zunction commented 2 years ago

Hi,

In my attempt to build CQL by running the command above provided in the instructions, I ran into the error below.

$ java --version
openjdk 11.0.14.1 2022-02-08
OpenJDK Runtime Environment Temurin-11.0.14.1+1 (build 11.0.14.1+1)
OpenJDK 64-Bit Server VM Temurin-11.0.14.1+1 (build 11.0.14.1+1, mixed mode)
$ java -jar cql.jar 
Error: LinkageError occurred while loading main class catdata.ide.IDE
    java.lang.UnsupportedClassVersionError: catdata/ide/IDE has been compiled by a more recent version of the Java Runtime (class file version 59.0), this version of the Java Runtime only recognizes class file versions up to 55.0

Could I get some help?

wisnesky commented 2 years ago

Hi there, I think you’re seeing this error because you actually need a more recent JVM than version 11 - I think you need version 15 or higher now. There’s a few places in the documentation that are stale with respect to JVM version number.

On Feb 18, 2022, at 7:26 AM, Zhangsheng Lai @.***> wrote:

Hi,

In my attempt to build CQL by running the command above provided in the instructions, I ran into the error below.

$ java --version openjdk 11.0.14.1 2022-02-08 OpenJDK Runtime Environment Temurin-11.0.14.1+1 (build 11.0.14.1+1) OpenJDK 64-Bit Server VM Temurin-11.0.14.1+1 (build 11.0.14.1+1, mixed mode) $ java -jar cql.jar Error: LinkageError occurred while loading main class catdata.ide.IDE java.lang.UnsupportedClassVersionError: catdata/ide/IDE has been compiled by a more recent version of the Java Runtime (class file version 59.0), this version of the Java Runtime only recognizes class file versions up to 55.0

Could I get some help?

— Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you are subscribed to this thread.

zunction commented 2 years ago

Thanks. After digging around the documentation, this worked for me:

  1. Download java 17 from here
  2. The java -jar cql.jar command will then run smoothly