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

Could not load libjvm on Some ARM-based Windows 11 24H2 #627

Open
kdaek21 opened this issue Nov 29, 2024 · 1 comment
Open

Could not load libjvm on Some ARM-based Windows 11 24H2 #627

kdaek21 opened this issue Nov 29, 2024 · 1 comment

Comments

@kdaek21
Copy link

kdaek21 commented Nov 29, 2024

I have two Arm-based Windows devices.
One is Galaxy Book2 (SM-W737 model) and the other is Galaxy Book Edge (NT960XMB-KC01B model) that was recently released.

Galaxy Book2 is an old device that was released recently, so it was Windows 11 23H2 until recently, and recently upgraded to Windows 11 24H2. Galaxy Book Edge was released as Copilot+PC from the time of release, although it was updated recently, so it was released as Windows 11 24H2.

I haven't checked the previous version, but ikvm-8.10.3-net8.0-arm64 version does not work on Galaxy Book2 that was updated to Windows 11 24H2, causing 'Could not load libjvm' error. (It works normally on Galaxy Book Edge, and I couldn't confirm whether it worked normally before updating to Windows 11 24H2.)

The specifications for each are as follows.
CPU: Galaxy Book 2 - Qualcomm Snapdragon 850 / Galaxy Book Edge - Qualcomm Snapdragon X Elite
RAM: Galaxy Book 2 - 4GB / Galaxy Book Edge - 16GB

The error message is as follows, but the same error was registered in a different case #623. Is it the same problem? Or is it a compatibility issue between the CPU (or the entire device) and the updated Windows (will it be resolved with a future Windows update?)?

Unhandled exception. System.TypeInitializationException: The type initializer for 'java.lang.Throwable' threw an exception.
---> System.TypeInitializationException: The type initializer for 'IKVM.Runtime.LibJava' threw an exception.
---> System.TypeInitializationException: The type initializer for 'IKVM.Runtime.LibJvm' threw an exception.
---> IKVM.Runtime.InternalException: Could not load libjvm.
at IKVM.Runtime.LibJvm..ctor() in //src/IKVM.Runtime/LibJVM.cs:line 137
at IKVM.Runtime.LibJvm..cctor() in /
/src/IKVM.Runtime/LibJVM.cs:line 105
--- End of inner exception stack trace ---
at IKVM.Runtime.LibJava..ctor() in //src/IKVM.Runtime/LibJava.cs:line 30
at IKVM.Runtime.LibJava..cctor() in /
/src/IKVM.Runtime/LibJava.cs:line 22
--- End of inner exception stack trace ---
at IKVM.Runtime.BootstrapClassLoader..ctor(RuntimeContext context) in //src/IKVM.Runtime/BootstrapClassLoader.cs:line 49
at IKVM.Runtime.RuntimeClassLoaderFactory.GetBootstrapClassLoader() in /
/src/IKVM.Runtime/RuntimeClassLoaderFactory.cs:line 134
at IKVM.Runtime.RuntimeAssemblyClassLoaderFactory.Create(Assembly assembly) in //src/IKVM.Runtime/RuntimeAssemblyClassLoaderFactory.cs:line 123
at IKVM.Runtime.RuntimeAssemblyClassLoaderFactory.FromAssembly(Assembly assembly) in /
/src/IKVM.Runtime/RuntimeAssemblyClassLoaderFactory.cs:line 81
at IKVM.Runtime.RuntimeClassLoaderFactory.GetJavaTypeFromType(Type type) in //src/IKVM.Runtime/RuntimeClassLoaderFactory.cs:line 250
at IKVM.Java.Externs.ikvm.runtime.Util.getFriendlyClassFromType(Type type) in /
/src/IKVM.Runtime/Java/Externs/ikvm/runtime/Util.cs:line 125
at ikvm.runtime.Util.getFriendlyClassFromType(Type type)
at java.lang.Class.op_Implicit(Type type) in Class.java:line 175
at IKVM.Runtime.ExceptionHelper.GetPersistentFields() in //src/IKVM.Runtime/ExceptionHelper.cs:line 430
at java.lang.Throwable..cctor()
--- End of inner exception stack trace ---
at java.lang.Throwable.__mapImpl(Exception)
at IKVM.Runtime.ExceptionHelper.MapException[T](Exception e, Boolean remap, Boolean unused) in /
/src/IKVM.Runtime/ExceptionHelper.cs:line 925
at IKVM.Runtime.ExceptionHelper.MapTypeInitializeException(TypeInitializationException t, Type handler) in //src/IKVM.Runtime/ExceptionHelper.cs:line 865
at IKVM.Runtime.ExceptionHelper.MapException[T](Exception e, Boolean remap, Boolean unused) in /
/src/IKVM.Runtime/ExceptionHelper.cs:line 919
at IKVM.Runtime.ExceptionHelper.MapTypeInitializeException(TypeInitializationException t, Type handler) in //src/IKVM.Runtime/ExceptionHelper.cs:line 865
at IKVM.Runtime.ExceptionHelper.MapException[T](Exception e, Boolean remap, Boolean unused) in /
/src/IKVM.Runtime/ExceptionHelper.cs:line 919
at IKVM.Java.Externs.ikvm.runtime.Util.mapException(Exception e) in //src/IKVM.Runtime/Java/Externs/ikvm/runtime/Util.cs:line 194
at ikvm.runtime.Util.mapException(Exception x)
at IKVM.Runtime.Launcher.Run(Assembly assembly, String main, Boolean jar, String[] args, String rarg, IDictionary`2 properties) in /
/src/IKVM.Runtime/Launcher.cs:line 556
at IKVM.Tools.Java.Program.Main(String[] args) in /_/src/java/Program.cs:line 11

@wasabii
Copy link
Contributor

wasabii commented Nov 29, 2024

Might be the same. If it's missing the required libraries, it's missing the required libraries.

But other than that, you'll have to tel me why the DLLs can't load. Look at them in depwalker or something?

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

2 participants