Closed Skieransa closed 1 month ago
Lot of questions about this recently, please see https://github.com/kwhat/jnativehook/issues/467.
To add just a little more to my previous answer, you can set the jnativehook.lib.path
property: https://github.com/kwhat/jnativehook/blob/2.2/src/main/java/com/github/kwhat/jnativehook/DefaultLibraryLocator.java#L81
thanks but how do i make it into the jar file when im done editing the code?
thanks but how do i make it into the jar file when im done editing the code?
I guess I don't quite follow what you are trying to accomplish.
Also the thing im trying to accomplish is to try to have it generate the dll file somewhere else
I somewhat understand how to use github actions now
but when it tries to compile java it givse me this error Error: This request has been automatically failed because it uses a deprecated version of actions/upload-artifact: v2
. Learn more: https://github.blog/changelog/2024-02-13-deprecation-notice-v1-and-v2-of-the-artifact-actions/
I saw that it has a new version of v4 but i do not know where to change it to that
I found out how to do it ( Im sorry for being stupid)
thanks but how do i make it into the jar file when im done editing the code?
I guess I don't quite follow what you are trying to accomplish.
- What code are you modifying? The Java code or the C code?
- The entire build process happens in GitHub Actions in a two step process that starts by compiling the C code with cmake and then the Java code with maven.
- The native files are just added to specific folders in the Jar archive.
so i set the artifact versions to v4 but when it tries to compile it gives me this on the upload part
0s
Run actions/upload-artifact@v4
With the provided path, there will be 1 file uploaded
Artifact name is valid! Root directory input is valid!
Error: Failed to CreateArtifact: Received non-retryable error: Failed request: (409) Conflict: an artifact with this name already exists on the workflow run
- I am modifying the java code specifically i am modifying https://github.com/kwhat/jnativehook/blob/2.2/src/main/java/com/github/kwhat/jnativehook/DefaultLibraryLocator.java#L81
Also the thing im trying to accomplish is to try to have it generate the dll file somewhere else
Ok, you don't need to modify that code. jnativehook.lib.path
is just a java property. Just run your program with java -Djnativehook.lib.path=C:/Some/Path/
where C:/Some/Path/ is where you want the libraries to be extracted to.
- I am modifying the java code specifically i am modifying https://github.com/kwhat/jnativehook/blob/2.2/src/main/java/com/github/kwhat/jnativehook/DefaultLibraryLocator.java#L81
Also the thing im trying to accomplish is to try to have it generate the dll file somewhere else
Ok, you don't need to modify that code.
jnativehook.lib.path
is just a java property. Just run your program withjava -Djnativehook.lib.path=C:/Some/Path/
where C:/Some/Path/ is where you want the libraries to be extracted to.
Oh. well that helps alot
- I am modifying the java code specifically i am modifying https://github.com/kwhat/jnativehook/blob/2.2/src/main/java/com/github/kwhat/jnativehook/DefaultLibraryLocator.java#L81
Also the thing im trying to accomplish is to try to have it generate the dll file somewhere else
Ok, you don't need to modify that code.
jnativehook.lib.path
is just a java property. Just run your program withjava -Djnativehook.lib.path=C:/Some/Path/
where C:/Some/Path/ is where you want the libraries to be extracted to.
But where do i add that? found out
thanks alot
Hello i have a question is there a way to change where the JNativeHook.x86_64.dll file is generated when the file is ran?