dietmarwo / fcmaes-java Goto Github PK
View Code? Open in Web Editor NEWA Java gradient-free optimization library
License: MIT License
A Java gradient-free optimization library
License: MIT License
Thanks for making it available for java. But while testing on Windows 11 x64, the following errors were thrown:
[INFO] Running fcmaes.core.OptimizerTest
Exception in thread "Thread-12" Exception in thread "Thread-10" Exception in thread "Thread-6" Exception in thread "Thread-5" Exception in thread "Thread-7" Exception in thread "Thread-11" Exception in thread "Thread-9" Exception in thread "Thread-3" Exception in thread "Thread-8" Exception in thread "Thread-4" Exception in thread "Thread-1" Exception in thread "Thread-2" java.lang.NoClassDefFoundError: Could not initialize class fcmaes.core.Jni
at fcmaes.core.Cmaes.minimize(Cmaes.java:30)
at fcmaes.core.Optimizers$CMA.minimize(Optimizers.java:184)
at fcmaes.core.Fitness.minimize(Fitness.java:239)
at fcmaes.core.CoordRetry$Optimize.run(CoordRetry.java:147)
at java.base/java.lang.Thread.run(Thread.java:840)
Caused by: java.lang.ExceptionInInitializerError: Exception java.lang.UnsatisfiedLinkError: C:\Users\zijie\AppData\Local\Temp\nativeutils16197232308100\fcmaeslib.dll: The specified procedure could not be found [in thread "Thread-5"]
at java.base/jdk.internal.loader.NativeLibraries.load(Native Method)
at java.base/jdk.internal.loader.NativeLibraries$NativeLibraryImpl.open(NativeLibraries.java:388)
at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:232)
at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:174)
at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2394)
at java.base/java.lang.Runtime.load0(Runtime.java:755)
at java.base/java.lang.System.load(System.java:1957)
at com.nativeutils.NativeUtils.loadLibraryFromJar(NativeUtils.java:115)
at fcmaes.core.Jni.<clinit>(Jni.java:12)
... 5 more
java.lang.NoClassDefFoundError: Could not initialize class fcmaes.core.Jni
at fcmaes.core.Cmaes.minimize(Cmaes.java:30)
at fcmaes.core.Optimizers$CMA.minimize(Optimizers.java:184)
at fcmaes.core.Fitness.minimize(Fitness.java:239)
at fcmaes.core.CoordRetry$Optimize.run(CoordRetry.java:147)
at java.base/java.lang.Thread.run(Thread.java:840)
Caused by: java.lang.ExceptionInInitializerError: Exception java.lang.UnsatisfiedLinkError: C:\Users\zijie\AppData\Local\Temp\nativeutils16197232308100\fcmaeslib.dll: The specified procedure could not be found [in thread "Thread-5"]
at java.base/jdk.internal.loader.NativeLibraries.load(Native Method)
at java.base/jdk.internal.loader.NativeLibraries$NativeLibraryImpl.open(NativeLibraries.java:388)
at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:232)
at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:174)
at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2394)
at java.base/java.lang.Runtime.load0(Runtime.java:755)
at java.base/java.lang.System.load(System.java:1957)
at com.nativeutils.NativeUtils.loadLibraryFromJar(NativeUtils.java:115)
at fcmaes.core.Jni.<clinit>(Jni.java:12)
... 5 more
...
DLL path was correctly set in PATH environment variable, and ProcMon utility showed that the java.exe process loaded the fcmaeslib.dll and its dependent DLLs successfully.
Hi!
I am very interested in the Java version of fcmaes and I tried to run some examples provided in the repositories. However, whenever I run one of the files provided in the examples folder the build fails and no result is obtained.
I provide a screenshot of what happens when I digit the "mvn install" command. The outcome is "BUILD SUCCESS" but there are some warnings and exceptions arising from the tests.
I provide you more information about the operative system and so on:
I thank you for you time and I hope that you can help me to solve the issue so that I can use your Java version of fcmaes.
Regards
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.