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

Bump JRE version from 8 to 11 in Dockerfile #616

Merged
merged 1 commit into from Sep 25, 2021
Merged

Bump JRE version from 8 to 11 in Dockerfile #616

merged 1 commit into from Sep 25, 2021

Conversation

bstee615
Copy link
Contributor

Problem

I got a java.lang.UnsupportedClassVersionError when I tried to use the image built by the Dockerfile.
Docker build command: docker build -t joern .
Docker run command: docker run -it -v$PWD:/share --name joern_worker joern bash
Error log running inside the Docker container: error-log.txt.

Solution

My solution was to bump the JRE version from 8 to 11 in the Docker container. My development machine runs Windows so I'm trying to use Joern in Docker. Bumped Java version following this guidance: https://www.baeldung.com/java-lang-unsupportedclassversion and seeing that the CI action runs JDK 11 (https://github.com/joernio/joern/blob/master/.github/workflows/pr.yml#L11).

I hope this is helpful!

Copy link
Contributor

@fabsx00 fabsx00 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@fabsx00 fabsx00 merged commit d6ebf13 into joernio:master Sep 25, 2021
@irwincong irwincong mentioned this pull request Dec 19, 2022
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

Successfully merging this pull request may close these issues.

None yet

2 participants