```ruby
# make sure we get the correct version of java installed
default['java']['install_flavor'] = 'oracle'
default['java']['jdk_version'] = '8'
default['java']['set_etc_environment'] = true
default['java']['oracle']['accept_oracle_download_terms'] = true
```

Switch to openjdk since Oracle jdk artifacts have been removed
user
```ruby
# make sure we get the correct version of java installed
default['java']['install_flavor'] = 'adoptopenjdk'
default['java']['jdk_version'] = '8'
default['java']['set_etc_environment'] = true
```
assistant