Fix for Cannot Find Main Class

  • The FTB Forum is now read-only, and is here as an archive. To participate in our community discussions, please join our Discord! https://ftb.team/discord

Did this fix the problem?

  • Yes

    Votes: 0 0.0%
  • No

    Votes: 3 75.0%
  • I don't know what you mean

    Votes: 1 25.0%

  • Total voters
    4
  • Poll closed .
Status
Not open for further replies.

NEXUS2345

New Member
Jul 29, 2019
185
0
0
This error is reasonably simple to fix. The cause of it is that there is a space or an unknown character in the folder name where the modpacks and launcher are installed. The fix is to rename the folder and remove any odd characters and spaces. However to complete the fix you need to go to [main drive]:/Users/[user]/AppData/Roaming/ftblauncher/ and open ftblaunch.cfg and edit the line
Code:
installPath=
to make the path equal to the renamed folder. This will fix all modpack loading issues.
 

Fluid

New Member
Jul 29, 2019
3
0
0
No clue what the hell you are trying to say, I got the file and all, but in the cfg what do you change? And this isnt a problem for the whole launcher, just one modpack for me atleast.
 

Chocoblast2

New Member
Jul 29, 2019
5
0
0
I changed the path for the install to one that includes no spaces or special characters. It fixed the initial "Could not find or load main class", but now it gives me:

Error: Could not find or load main class net.minecraft.launchwrapper.Launch

EDIT: I deleted all of the FTB data in roaming, as well as force updated the modpack and now it's working.
 
Last edited:
  • Like
Reactions: NPReno
Status
Not open for further replies.