Skip to content

Instantly share code, notes, and snippets.

@candera
Created December 4, 2010 16:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save candera/728308 to your computer and use it in GitHub Desktop.
Save candera/728308 to your computer and use it in GitHub Desktop.
Why does this fail when I uberjar and run it?
(ns repro.core
(:use [clojure.contrib.io :only [reader]])
(:gen-class))
(defn -main [& args]
(println (line-seq (reader (first args)))))
@candera
Copy link
Author

candera commented Dec 4, 2010

Here's the corresponding project.clj:

(defproject repro "1.0.0-SNAPSHOT"
:description "FIXME: write"
:dependencies [[org.clojure/clojure "1.2.0"]
[org.clojure/clojure-contrib "1.2.0"]]
:dev-dependencies [[swank-clojure "1.2.1"]]
:main repro.core)

@mtyaka
Copy link

mtyaka commented Dec 5, 2010

@candera
Copy link
Author

candera commented Dec 5, 2010

Thanks! That sure does look like the culprit. I'll give the stated workaround a try.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment