Giter Site home page Giter Site logo

jnotify's Introduction

JNotify

JNotify is a Java library that allow applications to listen to filesystem events, such as:

  • File created
  • File modified
  • File renamed
  • File deleted

This repository is a fork of upstream's jnotify.

The last upstream release was 0.94, back in April 2012, and the original source repository was on CVS, which is frankly awful to work with, hence the creation of this fork.

Noteworthy changes

This fork is not a drop-in replacement.

To make the best out of each platform-specific API, the simplified platform-agnostic abstraction layer was dropped to ease maintenance.

The JAR no longer automatically loads the native libraries. It is up to the calling application to determine when and how to do that.

The name of the native libraries was changed to reflect the incompatibility.

Build JAR

The following command will build the main jar (no sources or javadocs) and place it in build/libs

gradle jar

Build native code

You need the qmake build tool from Qt 5.

qmake && make && make clean

NB: this does not cross-compile, so you need to run this command on every supported platform you want to build native code for (Linux, macOS, Windows).

NB: on Windows you may need to use nmake instead, if your Qt installation is configured to use MSVC instead of MinGW.

Native libraries are placed in the native folder.

Deploy to Nexus/Maven

To deploy to a private Nexus repository, simply create a gradle.properties file with the following variables:

nexusRepo=http://repo.domain.tld
nexusUser=user
nexusPass=password

Then run the following command to deploy all jars (main, sources, javadoc) to that repo

gradle uploadArchives

NB: Native code is not deployed to the repo and needs to be bundled separately in your application.

jnotify's People

Contributors

huguesb avatar zarvox avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

jnotify's Issues

Getting java.lang.UnsatisfiedLinkError even if the libaerofs.jar is in java.library.path

I am getting the following error when trying to use you library:

Exception in thread "main" java.lang.UnsatisfiedLinkError: net.contentobjects.jnotify.linux.JNotify_linux.nativeInit()I
at net.contentobjects.jnotify.linux.JNotify_linux.nativeInit(Native Method)
at net.contentobjects.jnotify.linux.JNotify_linux.(JNotify_linux.java:47)

Do you know how make this solved?
Thanks,

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.