No matter what development environment is used, you must first familiarize yourself with the basic command line usage methods. Reference from the official site: http://clojure.org/downloads
First, make sure that JDK 5 or later is installed.
Then download the release package for clojure1.4: http://repo1.maven.org/maven2/org/clojure/clojure/1.4.0/clojure-1.4.0.zip
After decompression, go to the clojure-1.4.0 directory and perform the following operations:
Java-CP clojure-1.4.0.jar clojure. Main
Now the clojure repl (read-eval-print loop) Session is displayed, and basic lisp operations are input.
Clojure 1.4.0user => (+ 1 2 3) 6
The calculation result is 6.
Then enter an example:
User => (javax. Swing. joptionpane/showmessagedialog nil "Hello World") Nil
A message box for Java swting is displayed, with the content Hello world.
Type quit to exit the session.