Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

java

clojure

sun

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?

like image 457
Arthur Ulfeldt Avatar asked Dec 24 '09 18:12

Arthur Ulfeldt


People also ask

Does clojure need Java?

Clojure requires Java. Clojure officially supports Java LTS releases (currently Java 8, 11, and 17), but also tries to ensure interim versions work as well. You can use any Java distribution, whether it's a commercial release from Oracle or an open source version based on OpenJDK (like Temurin).

Does clojure use JVM?

Clojure Overview. Clojure is a dynamically-typed, functional programming language that runs on the JVM (Java 5 or greater) and provides interoperability with Java. A major goal of the language is to make it easier to implement applications that access data from multiple threads (concurrency).

Is clojure written in Java?

Clojure (/ˈkloʊʒər/, like closure) is a dynamic and functional dialect of the Lisp programming language on the Java platform.


1 Answers

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

like image 155
Thorbjørn Ravn Andersen Avatar answered Oct 07 '22 17:10

Thorbjørn Ravn Andersen