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

Compiling Problems: #1340

Closed
BOTwinnik opened this issue Jul 25, 2023 · 4 comments
Closed

Compiling Problems: #1340

BOTwinnik opened this issue Jul 25, 2023 · 4 comments
Labels

Comments

@BOTwinnik
Copy link

What happened?

Hello,

Hopefully this is belonging to the right place here, since I have to admit that I am very new to JavaEnvirements.
I wanted take a look in to the Development Setup and tried to follow the instructions of https://github.com/synthetichealth/synthea/wiki/Developer-Setup-and-Running
First, I cloned the synthea.git successfully into a folder.
At this point I had installed Git and JDK Development Kit 20.0.2

But now I always receive an error, when I am executing gradle.bat in the command prompt. I tried to downgrade Java to Java 19, uninstalling Java 20 and set the JAVA_HOME variable to the folder of the older version. Still I get the same error but now with:

"Unsupported class file major 63" instead of "Unsupported class file major 64"

Error1

Can somebody explain to me, why there an error like this is accuring and how to solve this problem, I would be very happy then.

Thanks a lot.

Environment

- OS: Windows 10 Pro
- Java: java version "19.0.2" 2023-01-17

Relevant log output

No response

@BOTwinnik BOTwinnik added the bug label Jul 25, 2023
@dehall
Copy link
Contributor

dehall commented Jul 25, 2023

It looks like the version of gradle that we have bundled with Synthea doesn't support these more recent versions - we should explore updating to a newer version of gradle and provide more guidance on supported versions of Java.

@BOTwinnik in the meantime can you try with JDK 17? 17 is the current LTS (long-term support) version and will be actively supported for 3 more years

@awatson1978
Copy link
Collaborator

I ran into the "Unsupported class file major 64" while trying to install on a fresh laptop last week. Reverting to JVM 17 helped, but then I ran into the problems documented in #1336.

You may need to patch the build.gradle file, as specified in #1337

@BOTwinnik
Copy link
Author

Thank you both for the quick reply! I will check for JDK 17 and let you know, whether it worked out.

@dehall
Copy link
Contributor

dehall commented Aug 21, 2023

@BOTwinnik I'm going to assume this issue is resolved and close it. Feel free to re-open it if you're still seeing the error.

Note also that we made a recent update and Synthea now supports JDK 19, so another potential fix is to get a fresh copy of synthea and try again.

@dehall dehall closed this as completed Aug 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants