Coder Social home page Coder Social logo

Comments (3)

chengenzhao avatar chengenzhao commented on July 29, 2024

This feature could be very useful when it comes with jlink to customize the runtime
the jlink will package the native part into the runtime

from jnativehook.

kwhat avatar kwhat commented on July 29, 2024

Maven itself doesn't even support classifiers and last I read they were being phased out in favor of multi-release jars. The java build process is nothing short of a dumpster fire. I am sure Gradle is slightly better than Maven but honestly Maven was far worse than Ant and anything including a bunch of shell scripts would be an improvement. I have no desire to look at the build system for this project, but if you want to try and introduce classifiers into mavens deploy plugin, by all means, create a branch and I will be happy to look it over.

With that said, you probably don't even want to use the native library auto loading from Java FX. The whole concept of unpacking the jar and loading the native library was only provided as a convenience and is not even close to the officially supported java.library.path property. JavaFX has its own way of looking for native libraries, but it's been years and I don't remember how they did it.

This library also has the ability to override how the native library is located which should give you the flexibility to do just about anything for your customer facing deliverables.

from jnativehook.

chengenzhao avatar chengenzhao commented on July 29, 2024

If I remember right
JavaFX almost does the same thing as you do in this project
they cache the dylib etc. in the
{username}/.openjfx/cache/{version}/{arch} directory
ζˆͺ屏2023-02-19 上午10 23 11

from jnativehook.

Related Issues (20)

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.