Hi,
I ran lein uberjar
on my project and it created the corresponding jar files. When I run the jar a ClassNotFoundException: explodingdots.core
is thrown. I specified explodingdot.core
as my main class. I extracted the jar file and there was indeed no core.class
in the corresponding directory. What did I forget?
I have the following code in src/explodingdots/core.clj
(ns explodingdots.core (:import (java.awt Color Dimension Graphics2D AlphaComposite RenderingHints) (java.awt.event ActionListener MouseAdapter WindowAdapter) (javax.swing Timer JPanel JFrame)) (:gen-class)) [ ... ] (defn -init[] exploding-dots) (defn -main[_] (let [ed (new explodingdots.core)] (.init ed)))
The content of my project.clj
is:
(defproject explodingdots "0.1" :dependencies [[org.clojure/clojure "1.2.0"] [org.clojure/clojure-contrib "1.2.0"]] :main explodingdots.core)
Note: I am using leiningen 1.3.1