Search code examples
javaclojuresun

which non-sun java(s) can i use to run Clojure?


I'm automating the process of building development-VMs for a project and having a really hard time getting sun-java-6 to install in a non-interactive environment because it really wants to ask about licenses. what are my other options are far as clojure friendly javas go?


Solution

  • If I recall correctly the "accept the license" bit can be set explicitly as the output from the installation process says that the license has already been accepted at a later stage. Hence, look into the Ubuntu package and figure out how to do this.

    I would not go the OpenJDK way as I do not believe it has passed the TCK yet.


    EDIT: It appears that this is the way to do it:

    DEBIAN_FRONTEND=noninteractive apt-get install -y java5-sun-jre || :
    debconf 'echo SET shared/accepted-sun-dlj-v1-1 true; echo $(read) >&2'
    apt-get install -y java5-sun-jre
    

    http://ubuntuforums.org/showpost.php?p=6752243&postcount=9