architectury / architectury-loom

A Gradle plugin to setup environments for Fabric, Forge, NeoForge and Quilt modding.
https://docs.architectury.dev/loom/introduction
MIT License
115 stars 41 forks source link

ClassNotFoundException when running a project located in a directory with a space in it's path #82

Open Jamalam360 opened 2 years ago

Jamalam360 commented 2 years ago

As discussed on Discord.

> Task :fabric:runClient FAILED
Error: Could not find or load main class <last name>\Desktop\Development\Minecraft
Caused by: java.lang.ClassNotFoundException: <last name>\Desktop\Development\Minecraft

Error: Could not find or load main class <last name>\Desktop\Development\Minecraft

Caused by: java.lang.ClassNotFoundException: <last name>\Desktop\Development\Minecraft

My mod is located at C:\Users\James \Desktop\Development\Minecraft\My Projects\Reaping. I'm using the forge-fabric-like-mixin template.

It works if I move the mod to a directory without a space in it's path.

Jamalam360 commented 2 years ago

More context

SmartSelect_20220501-110459_Discord-Beta.jpg