Skip to content

Error: Could not find or load main class drake.core #186

Closed

Description

@toomanycats

This is my first time trying Drake. I cloned the repo and switched to the Master branch.
java -version yields:

java version "1.7.0_80"
Java(TM) SE Runtime Environment (build 1.7.0_80-b15)
Java HotSpot(TM) 64-Bit Server VM (build 24.80-b11, mixed mode)

drake -h
Using DRAKE_HOME: /home/daniel/drake

========= UBERJAR COMPILING =========
/home/daniel/drake/bin/drake: line 68: lein: command not found
========= UBERJAR COMPILED ==========

Error: Could not find or load main class drake.core

I get the feeling I'm missing something very fundamental. :|

Activity

  1. amalloy commented on Jul 24, 2015

    @amalloy
    Contributor

    If you're going to build it from source, you need leiningen, the Clojure build tool, installed. If instead you follow the steps in the readme, the drake script will just download a prebuilt jar for you.

  2. dirtyvagabond commented on Jul 24, 2015

    @dirtyvagabond
    Contributor

    @toomanycats the easiest way to get Drake is to use Homebrew if you're on a Mac, or the drake script as Alan mentioned if you're on Linux. What's your OS and do you have a reason to want to build from source?

  3. toomanycats commented on Jul 25, 2015

    @toomanycats
    Author

    Hello all and thank you for responding.
    I run Ubuntu 14.04.
    Should have noted all this before was just a late night...
    Here's what I tried first off before anything else.

    I cloned the repo, switched to the master branch, stepped into the bin dir and ran the script there:

    ./drake
    Downloading drake jar for version 1.0.1...

    % Total % Received % Xferd Average Speed Time Time Time Current
    Dload Upload Total Spent Left Speed
    0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (77) error setting certificate verify locations:
    CAfile: /etc/pki/tls/certs/ca-bundle.crt
    CApath: none
    ERROR: Failed to download https://github.com/Factual/drake/releases/download/1.0.1/drake.jar with exit code 77

    Cheers

  4. toomanycats commented on Jul 25, 2015

    @toomanycats
    Author

    Was reading through the script, added a -x for debug mode:
    Here's the output again in debug mode:

    ./drake

  5. toomanycats commented on Jul 25, 2015

    @toomanycats
    Author

    Well I got tired of trying to fix the SSL cert and just used "insecure" connection...

    However there's a new error:

    • echo 'Drake jar downloaded for version 1.0.1.'
      Drake jar downloaded for version 1.0.1.
    • '[' '' = --version ']'
      ++ which drip
    • [[ -n '' ]]
    • java -cp :/home/daniel/.drakerc/jar/drake-1.0.1-standalone.jar drake.core
      drake: cannot find file or directory: /home/daniel/drake/bin/./Drakefile (use --help for documentation)

    Sure enough, I can't find that file anywhere...but not sure that's a real installation failure...going to try the demos.

  6. mavericklou commented on Jul 27, 2015

    @mavericklou
    Contributor

    @toomanycats well I guess you just fixed all your issues. This message drake: cannot find file or directory: /home/daniel/drake/bin/./Drakefile indicates that drake can not find any Drakefile to run in current working directory. So the point is, this drake script is both self-install script and running script. This is following the same design of leiningen.

  7. toomanycats commented on Jul 28, 2015

    @toomanycats
    Author

    Hello,

    Thank you for replying and taking time for my issue.

    I still have some problems.

    I went to the demo directory and tried to run a demo and again, received
    the drake.core not found error.

    Although I'd like to believe that this is my fault somehow..

    I'll try again and post details asap.

    Cheers !

      Daniel P Cuneo
      dpcuneo@fastmail.fm

    On Mon, Jul 27, 2015, at 02:37 AM, Maverick Lou wrote:

    @toomanycats[1] well I guess you just fixed all your issues. This message "drake: cannot find file or directory: /home/daniel/drake/bin/./Drakefile" indicates that drake can not find any Drakefile to run in current working directory. So the point is, this drake script is both self-install script and running script. This is following the same design of leiningen.

    —
    Reply to this email directly or view it on GitHub[2].

    Links:

    1. https://github.com/toomanycats
    2. Error: Could not find or load main class drake.core #186 (comment)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions