per laurilehmijoki/s3_website#323
As a workaround, if I manually invoke the JAR file, it works:
bundle exec s3_website install
java -cp $(bundle show s3_website)/*.jar s3.website.Push
If I pass the same RUBYLIB environment variable that bundle uses internally, it fails: (T his seems to support my theory that s3_website's JRuby is having problems because it's inheriting Ruby 2.5 or 2.6 settings from Bundler.)
RUBYLIB=/usr/local/lib/ruby/2.5.0 java -cp $(bundle show s3_website)/*.jar s3.website.Push
Oh my god, I already looked into fixing this in March 2018! I'm such an idiot. Serves me right for not using worklog.md
like I usually do.
Here's what I figured out back then:
- brew install jenv
- mkdir -p ~/.jenv/versions
install jdk 8u162-macosx-x64.dmg
add that jdk to jenv:
jenv add /Library/Java/JavaVirtualMachines/jdk1.8.0_162.jdk/Contents/Home
jenv versions
probably will list as oracle64-1.8.whatever
use global:
jenv global oracle64-1.8.0.162
- uninstall jdk9 via homebrew et al?
then java -version
reports the right one, and s3_website push
will work