Found the solution!
Ubuntu by default ignore the command \"RD_LIBRARY_PATH\" therefore I need to add those codes in \".bashrc\" instead of \"/etc/environment\" or .profi
Put "-Djava.library.path=FULL_PATH_HERE/jre/lib/amd64" as a JVM option in your C code.
Edit the full_path_here part.
The path is allowed to be relative, but I don't think you can use $JAVA_HOME as a placeholder for the environment variable.