Clojure programming environment Installation

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.