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

Problems with up-to-date hawtjni #33

Open
thedeadliestcatch opened this issue Sep 13, 2024 · 0 comments
Open

Problems with up-to-date hawtjni #33

thedeadliestcatch opened this issue Sep 13, 2024 · 0 comments

Comments

@thedeadliestcatch
Copy link

I'm attaching my current fixes based off PR 31 and 32, and another user's modification to support a YARA_HOME environment variable to allow using explicit paths for the libyara dependency.

fixes.diff.gz

Unfortunately, there is one extant issue I have not yet solved:

Caused by: java.lang.RuntimeException: java.lang.RuntimeException
    at org.fusesource.hawtjni.generator.HawtJNI.findClasses (HawtJNI.java:299)
    at org.fusesource.hawtjni.generator.HawtJNI.generate (HawtJNI.java:211)
    at org.fusesource.hawtjni.maven.GenerateMojo.generateNativeSourceFiles (GenerateMojo.java:232)
    at org.fusesource.hawtjni.maven.GenerateMojo.execute (GenerateMojo.java:199)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
    at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 (MojoExecutor.java:370)
    at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:351)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:171)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:163)

This is the versioning of the JDK/env from the image I am using to build:

$ java -version
openjdk version "21.0.4" 2024-07-16
OpenJDK Runtime Environment (build 21.0.4+7-Ubuntu-1ubuntu224.04)
OpenJDK 64-Bit Server VM (build 21.0.4+7-Ubuntu-1ubuntu224.04, mixed mode, sharing)

Should be reproducible as-is.

Hopefully this gets things moving toward a usable state.

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

1 participant