티스토리 뷰
Main Problem:
newpolaris@NEW-NOTEBOOK ~/.lein
$ lein new helloworld
Exception in thread "main" java.lang.NoClassDefFoundError: clojure/main
Caused by: java.lang.ClassNotFoundException: clojure.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)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
Debug bash
newpolaris@NEW-NOTEBOOK ~/.lein
$ bash -x lein new hello
+ LEIN_VERSION=1.5.2
+ export LEIN_VERSION
+ case $LEIN_VERSION in
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ '[' new = repl ']'
+ '[' new = interactive ']'
+ '[' new = int ']'
+ test
+ exec java -Xbootclasspath/a:/c/Users/newpolaris/.m2/repository/org/clojure/clo
jure/1.2.0/clojure-1.2.0.jar -client -Dleiningen.original.pwd=/c/Users/newpolari
s/.lein -cp '.;C:\Program Files (x86)\Java\jre1.6.0_07\lib\ext\QTJava.zip:::test
/:src/:/c/Users/newpolaris/.lein/self-installs/leiningen-1.5.2-standalone.jar' c
lojure.main -e '(use '\''leiningen.core)(-main)' /dev/null new hello
Exception in thread "main" java.lang.NoClassDefFoundError: clojure/main
Caused by: java.lang.ClassNotFoundException: clojure.main
at java.net.URLClassLoader$1.run(Unknown Source)
'.;c:\ …. ‘ is from CLASSPATH
newpolaris@NEW-NOTEBOOK ~/.lein
$ echo $CLASSPATH
.;C:\Program Files (x86)\Java\jre1.6.0_07\lib\ext\QTJava.zip
edit shell script to support msys.
;)
newpolaris@NEW-NOTEBOOK /c/gnuwin32/bin
$ echo $CLASSPATH
.;C:\Program Files (x86)\Java\jre1.6.0_07\lib\ext\QTJava.zip
newpolaris@NEW-NOTEBOOK /c/gnuwin32/bin
$ echo "$CLASSPATH" | sed -e 's|\\|\/|g' -e 's/;\(.\):/:\/\1/'
.:/C/Program Files (x86)/Java/jre1.6.0_07/lib/ext/QTJava.zip
so, edit lein shell file as
line 11:
# Make sure classpath is in unix format for manipulating, then put
# it back to windows format when we use it
if [ "$OSTYPE" = "cygwin" ] && [ "$CLASSPATH" != "" ]; then
CLASSPATH=`cygpath -up $CLASSPATH`
fi
# Make sure classpath is in unix format for manipulating, then put
# it back to windows format when we use it
if [ "$OSTYPE" = "msys" ] && [ "$CLASSPATH" != "" ]; then
CLASSPATH=`echo "$CLASSPATH" | sed -e 's|\\\|\/|g' -e 's/;\(.\):/:\/\1/'`
fi
newpolaris@NEW-NOTEBOOK ~/.lein
$ lein new hello
Created new project in: c:\Users\newpolaris\.lein\hello
OK
Sub Problem:
$ wget --no-check-certificate
c:\MinGW\bin\wget.exe: unrecognised option `--no-check-certificate'
Usage: wget [OPTION]... [URL]...
replace msys wget as gnuwin32 wget which is named as wget-1.12 (etc.)
curl – https problem
replace msys default curl as SSL supporting version (http://curl.haxx.se/download.html)
- Total
- Today
- Yesterday