node-minecraft-wrap icon indicating copy to clipboard operation
node-minecraft-wrap copied to clipboard

Can't find or load main class

Open cptpiepmatz opened this issue 6 years ago • 4 comments

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

cptpiepmatz avatar Jan 09 '19 20:01 cptpiepmatz

I have the same error. I search the error in the code.

zandercodes avatar Apr 07 '19 02:04 zandercodes

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.

zandercodes avatar Apr 07 '19 03:04 zandercodes

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.

cptpiepmatz avatar Apr 07 '19 07:04 cptpiepmatz

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.

zandercodes avatar Apr 08 '19 08:04 zandercodes