Skip to content

Problems with up-to-date hawtjni #33

@thedeadliestcatch

Description

@thedeadliestcatch

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions