Code Monkey home page Code Monkey logo

fcmaes-java's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

archer-y zjcong

fcmaes-java's Issues

The specified procedure could not be found

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.

Build error when running the examples

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.

mvn_tests mvn_warnings

I provide you more information about the operative system and so on:

  • OS: Ubuntu 22.04.03 LTS
  • OpenJDK 17.0.9
  • Apache Maven 3.6.3
  • Gradle 8.5

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.