Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The specified procedure could not be found #3

Open
clifftsung opened this issue Apr 14, 2024 · 0 comments
Open

The specified procedure could not be found #3

clifftsung opened this issue Apr 14, 2024 · 0 comments

Comments

@clifftsung
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant