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

Can't find or load main class #27

Open
cptpiepmatz opened this issue Jan 9, 2019 · 4 comments
Open

Can't find or load main class #27

cptpiepmatz opened this issue Jan 9, 2019 · 4 comments

Comments

@cptpiepmatz
Copy link

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

@zandercodes
Copy link

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

@zandercodes
Copy link

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.

@cptpiepmatz
Copy link
Author

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.

@zandercodes
Copy link

zandercodes commented Apr 8, 2019

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.

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