Comments (5)
Is there anything else on your system doing java things?
Do you have openjdk installed before your chef run (that shouldnt matter)?
Are you doing this with an interactive shell? eg if you log out and login again is JAVA_HOME right?
We have 14.04 in our test suite and it looks like it's doing the right thing:
Finished converging <oracle-8-ubuntu-1404> (0m19.39s).
-----> Kitchen is finished. (0m19.93s)
$ kitchen login oracle-8-ubuntu-1404
Welcome to Ubuntu 14.04 LTS (GNU/Linux 3.13.0-24-generic x86_64)
* Documentation: https://help.ubuntu.com/
91 packages can be updated.
39 updates are security updates.
Last login: Mon Aug 18 15:20:11 2014 from 10.0.2.2
vagrant@oracle-8-ubuntu-1404:~$ java -version
java version "1.8.0_11"
Java(TM) SE Runtime Environment (build 1.8.0_11-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.11-b03, mixed mode)
vagrant@oracle-8-ubuntu-1404:~$
from java.
One more thing, can you try setting node['java']['alternatives_priority']
to something higher than 1071?
from java.
Hmm... I'm not sure what's affecting this and yeah it's actually a existing project which has some amount of chef configs in place already so it might actually be that something else is messing up the system. I should have ran a test with more "trimmed" Chef/Vagrant setup, so it is probably something to do with my setup.
... but setting the node['java']['alternatives_priority']
works as a fix for now atleast! Thank you good sir for quick answer! :)
from java.
Priorities are a tricky thing, different OS's/packages/etc may have different priorities. Right now it is just a guess: https://github.com/agileorbit-cookbooks/java/blob/ef17a804184020b21ba59df6d38c3c07a3c4ee2c/libraries/helpers.rb#L37-L54
from java.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
from java.
Related Issues (20)
- java_certificate resource :remove fails
- Please remove references to supporting Oracle/IBM HOT 3
- Cannot 'Include' in Run List HOT 3
- Corretto `version` property should accept specific versions, not just latest major versions HOT 7
- `archive_file` within `corretto_install` will not extract if directory already exists HOT 4
- AdoptOpenJDK install doesn't handle JAVA_HOME correctly HOT 10
- Feature: STARTTLS parameter for the java_certificate resource HOT 1
- Bad resource naming for openjdk_source_install HOT 1
- Chef Exceptions CookbookChefVersionMismatch: Cookbook 'java' version '8.5.0' depends on chef version [">= 15.0"], but the running chef version is 14.15.6 HOT 2
- Cannot upgrade java version HOT 12
- Multiple errors when upgrading from v4.0.0 to v8.4.0 HOT 7
- OpenJDK Alternatives don't set correctly on OpenSUSE HOT 2
- AdoptOpenJDK is now Adoptium Temurin and IBM Semeru HOT 2
- openjdk_pkg_install reset_alternatives all the times HOT 2
- Adoptium Temurin JDK 11 is breaking certificate install HOT 1
- Dependency Dashboard
- OpenJDK variant typo HOT 1
- Cant seem to install anything but the default OpenJDK 17 version HOT 1
- AdoptiumJDK
- openjdk_pkg_install fails when installing older than newest version
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from java.