-
Notifications
You must be signed in to change notification settings - Fork 186
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
java.lang.RuntimeException: unsupported Java version: 9 #300
Comments
Pull request highly appreciated! |
And thank you for the report :) |
Btw @laurilehmijoki , thank you for s3 website. It`s a great project :) |
Also getting the same issue... would love to get this working as it would be my first time using it. Thank you! ——————
|
A workaround is to use jenv: #298 |
Could this be as simple as upgrading JRuby in |
My experience figuring out how to use |
I just used Docker, problem solved. Here is what I did:
Dockerfile
build.sh #!/bin/bash
docker build -t utils/s3_website . deploy.sh #!/bin/bash
docker run --rm \
--name s3_website \
-it \
-v "$(cd .. && pwd):/app" \
utils/s3_website \
s3_website push And I still keep the s3_website.yml file in my app root folder. The app container will access it through a shared volume. The process is simple:
Note: I am sure that this process can be optimized, e.g., let --dry-run be parameter for deploy.sh, but so far it works well for me. |
I tried and failed to make a PR to fix. I know basically nothing about Scala or Java, so no real surprise. Notes:
|
#300 (comment) I would also recommend using asdf to manage different versions of That's how I "fixed" this issue on my machine. |
For searchability:
|
Got a colleague with the same problem except their runtime exception message is Your build dependencies currently indicate that jRuby 1.7.11 is required. jRuby's Github indicates that the latest versions support up to v10: https://github.com/jruby/jruby/blob/ce15c9d63e7312c47c7d86c2852e93a406459c7b/core/src/main/java/org/jruby/RubyInstanceConfig.java |
For my future self:
Solution:
|
Can confirm that @losomo's workaround worked for me on Ubuntu 18.04 with
|
So which Java versions are supported? Can we at least mention that in the Readme? I'd hate to download and install one after the other until I hit one that's supported... |
I ended up Annoying because I had to completely uninstall I'm stunned that there is a Java dependency locked at 8? I wonder if @alandipert upgrade of JRuby comment would fix this. |
I've sent in #329 that should allow our beloved s3_website on recent versions of Java. I would love a review! |
Summary: we use `s3_website` to push the site to S3. turns out it doesn't support Java 11 yet (laurilehmijoki/s3_website#300) so I updated our docker image to use Java 8. also fixed a deprecation warning about using `bundle install --path`, and fixed a related cwd issue with calling `bundle exec` from outside `website/`. Reviewed By: jbrown215 Differential Revision: D21786250 fbshipit-source-id: 21e01836e6d2cc8b7e33aac992533f1a7153ecdc
Tried to use s3_website on Mac and unfortunately it does not run with Java 9
Java version
The text was updated successfully, but these errors were encountered: