mojira.dev
MCL-9929

Failed to locate library: lwjgl.dll (caused by non-ANSI characters in usernames)

How to fix

You need to create a new Windows username without any special characters, changing your current username DOES NOT work

Windows 7, 8, 8.1: https://support.microsoft.com/en-us/help/13951/windows-create-user-account#create-user-account=windows
*NOTE:* Scroll down for Windows 7 instructions, use the Windows 8.1 instructions for Windows 8
Windows 10: https://support.microsoft.com/en-us/help/4026923/windows-10-create-a-local-user-or-administrator-account

Description from MC-143300 (@unknown):

Testing result Summary: Windows userpaths with non-ANSI characters will result in a client crash. This cannot be fixed with --workDir.

Setup: I created four administrator accounts, Test, Testö, TestĂ, and Testş. Methodology: With each account I attempted to run Minecraft normally, and run Minecraft with --workDir directed to C:\MC_Root\.

Result details: The Test username (English) is in both Ascii and ANSI sets. This was my control to verify that the testing methodology was sound. In both cases, the client ran normally. The Testö username (Swedish) is not ascii, but is in the ANSI set (alt+0246). In both cases, the client ran normally.

The TestĂ username (Vietnamese) and Testş username (Azerbaijani) are not in the ANSI set. Running with default settings produces the "Could not find or load main class net.minecraft.client.main.Main" error (launcher_log.txt). Running with --workDir C:\MC argument produces the "java.lang.UnsatisfiedLinkError: Failed to locate library: lwjgl.dll" error (crash-2019-01-28_15.04.56-client.txt).


---- Minecraft Crash Report ----
// Hi. I'm Minecraft, and I'm a crashaholic.

Time: 27.08.18 20:22
Description: Initializing game

java.lang.UnsatisfiedLinkError: Failed to locate library: lwjgl.dll
	at org.lwjgl.system.Library.loadSystem(Library.java:147)
	at org.lwjgl.system.Library.loadSystem(Library.java:67)
	at org.lwjgl.system.Library.<clinit>(Library.java:50)
	at org.lwjgl.system.MemoryUtil.<clinit>(MemoryUtil.java:61)
	at org.lwjgl.system.MemoryStack.<init>(MemoryStack.java:61)
	at org.lwjgl.system.MemoryStack.create(MemoryStack.java:82)
	at org.lwjgl.system.MemoryStack.create(MemoryStack.java:71)
	at org.lwjgl.system.MemoryStack$$Lambda$809/1436538348.get(Unknown Source)
	at java.lang.ThreadLocal$SuppliedThreadLocal.initialValue(ThreadLocal.java:284)
	at java.lang.ThreadLocal.setInitialValue(ThreadLocal.java:180)
	at java.lang.ThreadLocal.get(ThreadLocal.java:170)
	at org.lwjgl.system.MemoryStack.stackGet(MemoryStack.java:628)
	at org.lwjgl.system.MemoryStack.stackPush(MemoryStack.java:637)
	at cgc.a(SourceFile:127)
	at cfs.an(SourceFile:557)
	at cfs.am(SourceFile:436)
	at cfs.a(SourceFile:380)
	at net.minecraft.client.main.Main.main(SourceFile:144)


A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- Head --
Thread: Client thread
Stacktrace:
	at org.lwjgl.system.Library.loadSystem(Library.java:147)
	at org.lwjgl.system.Library.loadSystem(Library.java:67)
	at org.lwjgl.system.Library.<clinit>(Library.java:50)
	at org.lwjgl.system.MemoryUtil.<clinit>(MemoryUtil.java:61)
	at org.lwjgl.system.MemoryStack.<init>(MemoryStack.java:61)
	at org.lwjgl.system.MemoryStack.create(MemoryStack.java:82)
	at org.lwjgl.system.MemoryStack.create(MemoryStack.java:71)
	at org.lwjgl.system.MemoryStack$$Lambda$809/1436538348.get(Unknown Source)
	at java.lang.ThreadLocal$SuppliedThreadLocal.initialValue(ThreadLocal.java:284)
	at java.lang.ThreadLocal.setInitialValue(ThreadLocal.java:180)
	at java.lang.ThreadLocal.get(ThreadLocal.java:170)
	at org.lwjgl.system.MemoryStack.stackGet(MemoryStack.java:628)
	at org.lwjgl.system.MemoryStack.stackPush(MemoryStack.java:637)
	at cgc.a(SourceFile:127)
	at cfs.an(SourceFile:557)
	at cfs.am(SourceFile:436)

-- Initialization --
Details:
Stacktrace:
	at cfs.a(SourceFile:380)
	at net.minecraft.client.main.Main.main(SourceFile:144)

-- System Details --
Details:
	Minecraft Version: 1.13.1
	Operating System: Windows 7 (amd64) version 6.1
	Java Version: 1.8.0_51, Oracle Corporation
	Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
	Memory: 393038896 bytes (374 MB) / 536870912 bytes (512 MB) up to 2147483648 bytes (2048 MB)
	JVM Flags: 9 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xss1M -Xmx2G -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=16M
	Launched Version: 1.13.1
	LWJGL: 3.1.6 build 14
	OpenGL: ~~ERROR~~ NoClassDefFoundError: Could not initialize class org.lwjgl.system.Library
	GL Caps: 
	Using VBOs: Yes
	Is Modded: Probably not. Jar signature remains and client brand is untouched.
	Type: Client (map_client.txt)
	Resource Packs: 
	Current Language: ~~ERROR~~ NullPointerException: null
	Profiler Position: N/A (disabled)
	CPU: <unknown>

Linked issues

MC-136666 Error: java.lang.UnsatisfiedLinkError: Failed to locate library: lwjgl.dl MC-136796 java.lang.UnsatisfiedLinkError: Failed to locate library: lwjgl.dll MC-139191 Error: java.lang.UnsatisfiedLinkError: Failed to locate library: lwjgl.dll MC-140644 Error: Could not find or load main class net.minecraft.client.main.Main MC-141557 The game crashed whilst initializing game Error: java.lang.UnsatisfiedLinkError: Failed to locate library: lwjgl.dll MC-143300 Non-ANSI windows user pathnames result in client crashes. MC-143564 Error: Could not find or load main class net.minecraft.client.main.Main MC-150025 Can't launch the game MC-157198 Game crashes on 2nd launch MC-158520 Game Crashed MCL-9444 Error: Could not find or load main class net.minecraft.client.main.Main MCL-9869 Failed to Launch as failed to locate library MCL-10022 No done initalizing MCL-10200 wont play MCL-10216 Java does not work with Unicode paths on Windows MCL-10426 GAME CRASH MCL-10448 1.13.2 Error: Could not find or load main class net.minecraft.client.main.Main MCL-10714 Instant Crash with Exit Code 1 MCL-10891 Minecraft 1.14.1: The game crashed whilst initializing game Error: java.lang.UnsatisfiedLinkError: Failed to locate library: lwjgl32.dll MCL-10950 The game crashed whilst initializing game The game crashed whilst initializing game Error: java.lang.UnsatisfiedLinkError: Failed to locate library: lwjgl.dll MCL-11589 Launcher fails to launch Minecraft with unicode in Windows username MCL-13870 Game Crashes While Opening

Attachments

Comments

migrated

Whoa. That was really fast.

P.S. I'm talking about my one.

migrated

Does it work for 1.13.2?

capfan

As a reminder, there are two possible outcomes caused by non-ANSI characters in the Windows userpath:

Under default conditions, the user will receive the following: Error: Could not find or load main class net.minecraft.client.main.Main

When using the --workDir argument avoid the Windows userpath, the user will receive the following: java.lang.UnsatisfiedLinkError: Failed to locate library: lwjgl.dll

migrated

I see. While this solution is working, there is one problem: all of my Windows settings and preferences are being reset. Is there a way to automate the process of transferring settings so that I don't have to deal with it every time? It's solving the problem, but I don't want to deal with this inconvenience.

migrated

(Unassigned)

Community Consensus

Retrieved