node-minecraft-wrap
node-minecraft-wrap copied to clipboard
Can't find or load main class
I installed the module globally via yarn and executed:
downloadMinecraft 1.13.2 1.13.2.jar client
This worked just fine. Now I tried
runMinecraft ./ 1.13.2 <my username> <my password>
But after that the first time i get something like:
User logged in !
{ AssertionError [ERR_ASSERTION]: wrong size for C:\Users\derPi\Desktop\WrapTest\/assets/objects/d8/d859c9c5be04ffc41479b306814a933983eaa2 35
at fs.stat.then.stats (C:\Users\derPi\AppData\Local\Yarn\Data\global\node_modules\minecraft-wrap\lib\launcher_download.js:182:45)
generatedMessage: false,
name: 'AssertionError [ERR_ASSERTION]',
code: 'ERR_ASSERTION',
actual: 23232,
expected: 27101,
operator: '==' }
And the second attempt:
User logged in !
Client prepared !
.Error: Could not find or load main class net.minecraft.client.main.Main
.Java HotSpot(TM) 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release
I don't know whats wrong here
I have the same error. I search the error in the code.
I think I know what it is. If you start Minecraft from the launcher, it starts with javaw. But here it starts with java normally and not with javaw.
I think that is not the problem. More likely my download doesn't work smoothly. Probably some files don't get downloaded. So some parts of the game are missing.
As it says it's a class error, not a jvm error or something like this.
I think I know what it is. If you start Minecraft from the launcher, it starts with javaw. But here it starts with java normally and not with javaw.
Yes, you're right! That's not the problem. I noticed that when starting with WrapClient no OS is specified in the code. There are also problems in the code under Windows with join(':') which should be separated by ; . There is also a problem with the native libs, which are downloaded every time the client is started. I try to make the days a fix for it.