Git Product home page Git Product logo

Comments (5)

erichelgeson avatar erichelgeson commented on May 17, 2024

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.

erichelgeson avatar erichelgeson commented on May 17, 2024

One more thing, can you try setting node['java']['alternatives_priority'] to something higher than 1071?

from java.

aripalo avatar aripalo commented on May 17, 2024

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.

erichelgeson avatar erichelgeson commented on May 17, 2024

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.

lock avatar lock commented on May 17, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.