timvisee / lazymc

💤 Put your Minecraft server to rest when idle.
GNU General Public License v3.0
552 stars 14 forks source link

Unable to start server #62

Closed 253488655422 closed 6 months ago

253488655422 commented 6 months ago

I don't care if someone else had this issue I've been looking over the issues and it was never explained how to fix this: I tried replacing the server start commands multiple times and reloaded the config. (Also I changed the server version to 1.20.1 and protocol to 763 and it still didn't change it still thinks the client needs to be 1.19.3

Exception in thread "main" java.lang.ExceptionInInitializerError at java.base/java.nio.file.FileSystems$DefaultFileSystemHolder.getDefaultProvider(FileSystems.java:114) at java.base/java.nio.file.FileSystems$DefaultFileSystemHolder$1.run(FileSystems.java:103) at java.base/java.nio.file.FileSystems$DefaultFileSystemHolder$1.run(FileSystems.java:101) at java.base/java.security.AccessController.doPrivileged(AccessController.java:318) at java.base/java.nio.file.FileSystems$DefaultFileSystemHolder.defaultFileSystem(FileSystems.java:101) at java.base/java.nio.file.FileSystems$DefaultFileSystemHolder.(FileSystems.java:94) at java.base/java.nio.file.FileSystems.getDefault(FileSystems.java:183) at java.base/java.io.File.toPath(File.java:2387) at java.base/java.util.zip.ZipFile$Source.get(ZipFile.java:1264) at java.base/java.util.zip.ZipFile$CleanableResource.(ZipFile.java:709) at java.base/java.util.zip.ZipFile.(ZipFile.java:243) at java.base/java.util.zip.ZipFile.(ZipFile.java:172) at java.base/java.util.jar.JarFile.(JarFile.java:347) at java.base/java.util.jar.JarFile.(JarFile.java:318) at java.base/java.util.jar.JarFile.(JarFile.java:257) at java.base/sun.launcher.LauncherHelper.getMainClassFromJar(LauncherHelper.java:552) at java.base/sun.launcher.LauncherHelper.loadMainClass(LauncherHelper.java:778) at java.base/sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:686) Caused by: java.nio.file.InvalidPathException: Illegal character [?] in path at index 2: \?\E:\Foxia at java.base/sun.nio.fs.WindowsPathParser.nextSlash(WindowsPathParser.java:212) at java.base/sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:111) at java.base/sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:77) at java.base/sun.nio.fs.WindowsFileSystem.(WindowsFileSystem.java:51) at java.base/sun.nio.fs.WindowsFileSystemProvider.(WindowsFileSystemProvider.java:54) at java.base/sun.nio.fs.DefaultFileSystemProvider.(DefaultFileSystemProvider.java:34) ... 18 more

253488655422 commented 6 months ago

I updated to Java 21 and I got less errors but now I have a different error even though I'm running Purpur for 1.20.1 I got: Error: Could not find or load main class io.papermc.paperclip.Main Caused by: java.lang.ClassNotFoundException: io.papermc.paperclip.Main

253488655422 commented 6 months ago

I switched back to to spigot and I got the same error: Error: Could not find or load main class org.bukkit.craftbukkit.bootstrap.Main Caused by: java.lang.ClassNotFoundException: org.bukkit.craftbukkit.bootstrap.Main

Since purpur is a fork of paper and spigot is a fork of bukkit I think that's why it's called that in the error.

253488655422 commented 6 months ago

image

253488655422 commented 6 months ago

lazymc.txt

253488655422 commented 6 months ago

Screenshot (839) Note: My server is 1.20.1 image

253488655422 commented 6 months ago

My friend help test it on his end he found out that you have to set the sever path/directory on line 30 to have double slashes \ for windows. (C:\folder\server)

❌This won't work: wontwork

✔But this will work: willwork

Please I'm begging you please add this to the documentation page.