Import the .jar file (vaadin-6.4.8.jar) into a Clojure (.clj) script

I need to write a Clojure script to create a simple application using Vaadin.
In Java, I use something like this with my fist.
"import com.vaadin.Application;"
But I do not know how to do this in Clojure. I need to know how to import it and the place where I should store this .jar.

+5
source share
2 answers

There is a built-in tool for clojure called leiningen.

For instance:

(ns your-project-name.core
  (:import (com.vaadin Application)
           (com.vaadin.ui Button Form HorizontalLayout)
           (com.vaadin.data.Property ValueChangeEvent)))

, java clojure: http://java.ociweb.com/mark/clojure/article.html#JavaInterop


, clojure Java- : , Clojure?

+9

Vaadin Clojure, . , Vaadin, Java. , Clojure. , Vaadin Clojure, .

+1

All Articles