I’m a bit confused, please excuse me if I’m pressing on the following, but if they jnijavacpp.so and other .so files are missing from my uber jar, why do they appear in the list that is returned when I run the command jar tf uberjar_name.jar command? There are many other .so files listed in there and they didn’t trigger the errors I’ve been getting.
I will try building my program with the command you indicated:
and see if I too get the “Warning: Could not load Loader: java.lang.UnsatisfiedLinkError: no jnijavacpp in java.library.path” you shared above. Thanks.
I’ll try it. I’ll copy/clone the MultiMain.java abd pom.xml file in some folder I’ll make and run the command mvn compile exec:java and see what that provides as output.
Maven returned the following error of “option 1.5” not being supported any longer:
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] Source option 1.5 is no longer supported. Use 1.6 or later.
[ERROR] Target option 1.5 is no longer supported. Use 1.6 or later.
[INFO] 2 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 17.758 s
[INFO] Finished at: 2021-01-15T07:31:39Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project multimain: Compilation failure: Compilation failure:
[ERROR] Source option 1.5 is no longer supported. Use 1.6 or later.
[ERROR] Target option 1.5 is no longer supported. Use 1.6 or later.
Ok, for the MultiMain.java program, I ran the following command incorporating the source and target for the version of Maven to be used as you mentioned:
Ok, so I copied the “SimpleExample.java” file and its companion “pom.xml” file into another folder from the cpu_features directory in the github repository and I ran:
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5.495 s
[INFO] Finished at: 2021-01-15T13:13:16Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project simpleexample: Could not resolve dependencies for project org.bytedeco.cpu_features:simpleexample:jar:1.5.5-SNAPSHOT: Could not find artifact org.bytedeco:cpu_features-platform:jar:0.6.0-1.5.5-SNAPSHOT → [Help 1]
Am I supposed to be running maven on this pom file with the pom file just sitting alone in its own folder? I didn’t clone the whole javacpp-presets repository, I’ve just been copying the pom and java files and putting them together in their own folder.
After I’ve cloned the above repository, what should I do (as with Maven, I’ve never used Gradle before besides getting it installed)? Do I immediately execute the maven commands in the “known issues” section (there’s no pom file in the indicated repository directory, so I wasn’t sure if Maven would work without me adding something extra)? I already have gradle installed and it’s working. Thanks.
@Procambarus-gracilis (or any future readers here): android snapshots have been deployed for intel and arm 32/64 bit. Any user feedback we can get will improve the support for the os in the future.
Thanks!