-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build error #51
Comments
I'm using the version 1.0.3 from Bintray and it seems to be working so far. No one could help you unless you clearly describe how you're building, and what you're building. Better yet, attach a sample project along with steps to reproduce the problem. |
I think you need to: import edu.princeton.cs.algs4.* 我猜你没有引入该书提供的工具库 |
I passed the compile part: But failed in the run part: The error message is: Anyone what happens to me? Thanks~ |
I know how to compile and run it now: java -cp /Users/user/documents/algorithms/algs4-master/target/algs4-1.0.0.0.jar edu.princeton.cs.algs4.BinarySearch tinyW.txt < tinyT.txt |
The correct solution is: javac -cp /Users/user/documents/algorithms/algs4-master/target/algs4-1.0.0.0.jar -d . BinarySearch.java java -cp /Users/user/documents/algorithms/algs4-master/target/algs4-1.0.0.0.jar edu.princeton.cs.algs4.BinarySearch tinyW.txt < tinyT.txt |
Does anyone know how to fix the build error?
The text was updated successfully, but these errors were encountered: