6 ms·
The project's README file (https://github.com/Factual/drake https://github.com/Factual/drake - scroll down) contains building and running instructions, as well
by aboytsov 14y ago
The project's README file (https://github.com/Factual/drake https://github.com/Factual/drake - scroll down) contains building and running instructions, as well as how to create a simple script to run Drake which you can put on your PATH.
- fnbr 14y agoAh, sorry, I should have been more clear. I've actually gone through the readme a few times, to no avail. I'll triple-check it though.
- aboytsov 14y agoRead the "Installation" section, there's "A nicer way to run Drake" subsection. But I would advise to read the whole "Installation" section carefully.
- fnbr 14y agoI actually did that, several times. My mistake was that I didn't realize I was supposed to have Drake.jar in the same folder as the workflow that I was trying to execute (I'd keep getting the error 'Unable to access jarfile drake.jar'). Naive error, I suppose. However, I'm still having trouble executing the 'A nicer way to run Drake' instructions. I created a file named 'drake' on my path, and inserted the given text. However, I keep getting the error 'Exception in thread "main" java.lang.NoClassDefFoundError: drake/core' Was I supposed to alter the script in any way? I just naively copy/pasted.
- aboytsov 14y agoYou don't have to have Drake.jar in the same folder as the workflow you're trying to execute. You create the script as described in the documentation, and you put it somewhere on your PATH along with the JAR file. The JAR files has to be in the same directory as the script. Sorry if it wasn't clear. I'll fix the doc.
- aboytsov 14y agoActually, it was in the doc. If you followed the instructions below precisely, just send us your terminal log so that we can see what you're missing. A nicer way to run Drake We recommend you "install" Drake in your environment so that you can run it by just typing "drake". Here's a convenience script you can put on your path: #!/bin/bash java -cp $(dirname $0)/drake.jar drake.core $@ Save that as `drake`, then do `chmod 755 drake`. Move the uberjar to be in the same directory. Now you can just type `drake` to run Drake from anywhere.
- fnbr 14y agoI'm embarrassed- you're completely right. My apologies. It's working perfectly now. Thanks for putting up with me!