Skip to content
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

Some command lines in the README are not working #269

Closed
stonexjr opened this issue Oct 12, 2018 · 1 comment
Closed

Some command lines in the README are not working #269

stonexjr opened this issue Oct 12, 2018 · 1 comment

Comments

@stonexjr
Copy link

For example:

$ java  -cp javacpp.jar NativeLibrary

simply throws error
Error: Could not find or load main class NativeLibrary
Need to add current directory to the classpath like:

$ java  -cp javacpp.jar:. NativeLibrary
@stonexjr stonexjr changed the title Some command line in the README is not working Some command lines in the README are not working Oct 12, 2018
stonexjr added a commit to stonexjr/javacpp that referenced this issue Oct 12, 2018
stonexjr added a commit to stonexjr/javacpp that referenced this issue Oct 12, 2018
@saudet
Copy link
Member

saudet commented Oct 13, 2018

No, it works just fine because "." is in the class path already, see #192. In any case, we can't put java -cp javacpp.jar:. NativeLibrary either because it doesn't work on Windows, we need to use a semi-colon on that platform. Anyway, I'll mark this as a duplicate of #192. Let's continue the discussion there! Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants