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

Windows Machine running 1.18.2 Fabric Server critical error #30

Closed
JsephGriff opened this issue Sep 20, 2022 · 2 comments
Closed

Windows Machine running 1.18.2 Fabric Server critical error #30

JsephGriff opened this issue Sep 20, 2022 · 2 comments
Labels
question Further information is requested

Comments

@JsephGriff
Copy link

Hi! I have been having a non-stop issue with LazyMC controlling my 1.18.2 fabric server jar. The server refuses to start with this error, which only occurs upon using LazyMC. If I use any other script to start the server including running the Jar, the server will launch fine without error. My java 17 paths are all properly used, and even by typing the default script thru the lazymc.toml config, such as: command = "java -Xmx1G -Xms1G -jar fabric-server.jar --nogui"
the error still persists.

INFO lazymc > Rewritten server.properties file with updated values
INFO lazymc > Proxying public ~~~~~~~:25565 to server ~~~~~~~~:25566
INFO lazymc > Starting server...
Error: A JNI error has occurred, please check your installation and try again
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:541)
at java.base/sun.launcher.LauncherHelper.loadMainClass(LauncherHelper.java:767)
at java.base/sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:675)
Caused by: java.nio.file.InvalidPathException: Illegal character [?] in path at index 2: \?\C:\Users\Name\Documents\Server
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
WARN lazymc > Server process stopped with error code (exit code: 1)

@JsephGriff
Copy link
Author

So sorry, I did not see a previously closed issue with the same exact error. For future reference, manually setting the directory in the config saved everything. I nearly did a full on windows re-install because I thought my java path's were all busted, based on the error thrown from this bug. SHEESH.

@timvisee
Copy link
Owner

Great to see you were able to fix it!

Sadly, I don't think there's an easy way to fix this automatically.

@timvisee timvisee added the question Further information is requested label Sep 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants