java - Running an uberjar -


i'm rather new programming, please excuse obvious mistakes i'm making.

i have clojure project, runs fine, when (-main) added end of clj file. have created stand alone jar using lein uberjar. trying run, using java -jar [name of jar].jar

this returns following error - error: unable access jarfile condor-0.1.0-snapshot-standalone.jar

i have seen questions saying require path , others not.

how standalone run?

also clojure project has multiple files uses source code, how ensure when make jar in first place right application making? feel stupid question, it's 1 don't know answer to!

thanks

project.clj

(defproject uberthing "0.1.0-snapshot"    :description "fixme: write description"    :url "http://example.com/fixme"    :license {:name "eclipse public license" :url "http://www.eclipse.org/legal/epl-v10.html"}    :dependencies [[org.clojure/clojure "1.6.0"]]    :main ^:skip-aot uberthing.core    :target-path "target/%s"    :profiles {:uberjar {:aot :all}})  

core.clj

(ns uberthing.core (:gen-class))  (defn -main "i don't whole lot ... yet."    [& args]   (println "hello, world!")) 


Comments