On Monday, September 3, 2012 11:34:02 AM UTC-4, John Gabriele wrote: > > On Thursday, August 30, 2012 9:36:14 PM UTC-4, gearss wrote: >> >> I have a file named pong.clj, it isunder following, I want to know how >> can I run it? >> Thank you. >> >> > > Hi gearss. See "Launching a Script" at http://clojure.org/repl_and_main . > > Whoops. Sorry --- just noticed you have some dependencies in there.
A few things: * Of course, as a prerequisite, you'll need to have Java installed. * Since you've got dependencies, it will probably be easiest to install [leiningen](http://leiningen.org/), then use it to create a new project (`lein new app example.game.pong`) and put your code into that new project. * you'll need to edit your project's project.clj file to include the penumbra dependency. Note though that the [penumbra github page](https://github.com/ztellman/penumbra) mentions that it's no longer under active development. More info in [this thread](https://groups.google.com/forum/?fromgroups=#!topic/penumbra-lib/3hFqFZYCeaI). * I don't know about the "opengl" dependency. * Regarding the dependency on clojure.contrib.def, note that the contrib libraries have undergone a change since older versions of Clojure: they're no longer one big monolithic distribution, but instead are now modular (and distributed separately). I haven't used defvar (presumably from clojure.contrib.def) before. [This page](http://dev.clojure.org/display/design/Where+Did+Clojure.Contrib+Go) has a note about it, and specifically mentions defvar. Hope that helps a bit. ---John -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en