Clojure 启动出错

X:\clojure-1.3.0>java -cp clojure.jar main
Exception in thread "main" java.lang.NoClassDefFoundError: main
Caused by: java.lang.ClassNotFoundException: main
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
Could not find the main class: main.  Program will exit.

把 clojure-1.3.0.jar 改名为: clojure.jar 问题就解决了。

唉。还是喜欢Mac平台。

你可能感兴趣的:(clojure)