Coder Social home page Coder Social logo

Comments (3)

technomancy avatar technomancy commented on August 27, 2024

Also the hacking instructions don't point out that you need to run the following still from the checkout directory

It sounds like you're using an older version. Recent versions do not require AOT compilation of leiningen any more. If you're seeing problems on the latest, could you paste a stack trace so we can debug?

from leiningen.

swannodette avatar swannodette commented on August 27, 2024

When trying to run:

lein deps

On my own project I get the following:

Leiningen is not installed. Please run "lein self-install".
Exception in thread "main" java.lang.NoClassDefFoundError: clojure/main
Caused by: java.lang.ClassNotFoundException: clojure.main
    at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:319)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:330)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:254)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:399)

I can only get things to work with the following patch to bin/lein on leiningen/master.

    Modified bin/lein
diff --git a/bin/lein b/bin/lein
index 5612773..c02561f 100755
--- a/bin/lein
+++ b/bin/lein
@@ -31,9 +31,12 @@ if [ -r "$BIN_DIR/../src/leiningen/core.clj" ]; then
     LEIN_DIR="$(dirname "$BIN_DIR")"
     CLASSPATH="$LEIN_DIR/src:$LEIN_DIR/classes:$LEIN_DIR/lib:$LEIN_JAR:$CLASSPATH"
 
-    if [ ! -r "lib/leiningen*jar" -a ! -r "$LEIN_JAR" -a "$1" != "self-install" ]; then
+    if [ ! -r "$BIN_DIR/../lib/leiningen.jar" -a ! -r "$LEIN_JAR" -a "$1" != "self-install" ]; then
         echo "Leiningen is not installed. Please run \"lein self-install\"."
     fi
+    if [ -r "$BIN_DIR/../lib/leiningen.jar" ]; then
+        CLASSPATH="$CLASSPATH:$BIN_DIR/../lib/leiningen.jar"
+    fi
 else
     # Not running from a checkout
     CLASSPATH="$CLASSPATH:$LEIN_JAR"

from leiningen.

technomancy avatar technomancy commented on August 27, 2024

Pushed a fix; thanks.

from leiningen.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.