Skip to content

Java - error: package nitf does not exit  #338

@s2000coder

Description

@s2000coder
javac ReadImageSample.java 
ReadImageSample.java:6: error: package nitf does not exist
import nitf.IOHandle;
           ^
ReadImageSample.java:7: error: package nitf does not exist
import nitf.ImageReader;
           ^
ReadImageSample.java:8: error: package nitf does not exist
import nitf.ImageSegment;
           ^
ReadImageSample.java:9: error: package nitf does not exist
import nitf.ImageSubheader;

This is on CentOS with OpenJDK 1.8.0.

The javac compiler can't find the nitf library. Nitro is successfully built on the OS.

Setting the path to where the libnitf.jni-c.so is located doesn't do anything.
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/path/to/nitro/lib

Any idea on how to run the java file?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions