Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SchemaSpy: Error: java.lang.UnsupportedClassVersionError #1308

Open
babsvoneuw opened this issue Oct 24, 2023 · 2 comments
Open

SchemaSpy: Error: java.lang.UnsupportedClassVersionError #1308

babsvoneuw opened this issue Oct 24, 2023 · 2 comments

Comments

@babsvoneuw
Copy link

When running this command: java -jar schemaspy-6.2.4.jar -vizjs we got the following error:
ERROR: Caused by: java.lang.UnsupportedClassVersionError: org/openjdk/nashorn/api/scripting/NashornScriptEngineFactory has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
the java-jre-version is: openjdk version "1.8.0_345"
I didn't found a way to change the java-jre-version - what options do I have to make this work?

Expected Behavior

schemaspy should also work with jre 1.8

Current Behavior

schemaspy doesn't work with jre 1.8

Possible Solution

Steps to Reproduce (for bugs)

Context

  • Full command including arguments how you run SchemaSpy:
    java -jar schemaspy-6.2.4.jar -vizjs

we're trying to run schemaspy as an azure function. we plan to write a powershell-script, which gets all the databases in azure and calls schemaspy for each database, finally we'll copy all the generated files to a web-storage

Your Environment

  • Version used: schemaspy-6.2.4.jar
  • Operating System and version (e.g. Windows 10): windows
  • Java version:openjdk version "1.8.0_345"
@npetzall
Copy link
Member

We must have added a Java 11 dependency into 6.2.4 which is bad. The solution would be to use java 11 or 17 if possible.

We have since moved on to java 17, and next release will require java 17. It might have sneaked thru, due to a requirement from our quality tool that requires java 11 to run. So SchemaSpy is compiled for java 8, but the dependency for JavaScript that was added and it was compiled for java 11.

@npetzall
Copy link
Member

Looks like this affect all version 6.2.*

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants