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

Not working #7

Open
jtnelson opened this issue May 13, 2016 · 8 comments
Open

Not working #7

jtnelson opened this issue May 13, 2016 · 8 comments

Comments

@jtnelson
Copy link

I can't seem to get the example you have in the README to work on my computer. Seems like there are no events are being fired when I create/modify/delete files in the watched directory.

I'm using Gradle for dependency management. I added the 0.0.7 jar from maven and all of the upstream dependencies. Do I need to do anything else so that the hooks into the native carbon API works?

@jtnelson
Copy link
Author

and i'm using java 8

@jvanzyl
Copy link
Contributor

jvanzyl commented May 13, 2016

Look at the tests for a working example.

@jtnelson
Copy link
Author

jtnelson commented May 13, 2016

I'm assuming the snippet you have in the README is a working example...

My question is essentially this:

should I be able to simply copy and paste what you have in the README and add a simple System.out.println in the onModify method and see output if I modify a file?

OR

do I need to also do some other configuration to the JVM to ensure that access to the native carbon apis works?

@jvanzyl
Copy link
Contributor

jvanzyl commented May 13, 2016

No, it should work. I originally cut/pasted from the test.

@jvanzyl
Copy link
Contributor

jvanzyl commented May 13, 2016

The last test run also seems to be fine, albeit CI is running on Linux: https://ci.takari.io/job/directory-watcher/lastBuild/console

@jtnelson
Copy link
Author

I'm sure your tests are running fine. I'm not able to get the example working on my system so I'm trying to figure out if I need to do something else to make sure the native carbon API is accessible via JNA.

For example, do I need to load the JNA jar as an agent? Do I need to manually load the JNA library somewhere?

@jvanzyl
Copy link
Contributor

jvanzyl commented May 13, 2016

Also works fine for me on El Capitan here. Do the tests run for you on whatever OSX you have there?

@jtnelson
Copy link
Author

I don't have the source checked out. Im using the released jar that is available on maven central.

Sent from my iPhone

On Fri, May 13, 2016 at 5:15 AM -0700, "Jason van Zyl" [email protected] wrote:

Also works fine for me on El Capitan here. Do the tests run for you on whatever OSX you have there?


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub

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

No branches or pull requests

2 participants