LanternPowered / Terre

A proxy server for Terraria which adds support for cross-platform, multi-world and more.
MIT License
18 stars 3 forks source link

Standalone jar cannot handle spaces in the path #16

Closed Cybermaxke closed 11 months ago

Cybermaxke commented 1 year ago
C:\Users\Terraria Server\Desktop\terre-proxy>java -Xms256M -Xmx2G -jar terre.jar
Exception in thread "main" java.lang.IllegalStateException: java.nio.file.NoSuchFileException: C:\Users\Terraria%20Server\Desktop\terre-proxy\terre.jar
        at org.lanternpowered.terre.impl.StandaloneMain.main(StandaloneMain.java:69)
Caused by: java.nio.file.NoSuchFileException: C:\Users\Terraria%20Server\Desktop\terre-proxy\terre.jar
        at java.base/sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:85)
        at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:103)
        at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:108)
        at java.base/sun.nio.fs.WindowsFileSystemProvider.newByteChannel(WindowsFileSystemProvider.java:236)
        at java.base/java.nio.file.spi.FileSystemProvider.newOutputStream(FileSystemProvider.java:484)
        at java.base/java.nio.file.Files.newOutputStream(Files.java:228)
        at jdk.zipfs/jdk.nio.zipfs.ZipFileSystem.<init>(ZipFileSystem.java:162)
        at jdk.zipfs/jdk.nio.zipfs.ZipFileSystemProvider.getZipFileSystem(ZipFileSystemProvider.java:142)
        at jdk.zipfs/jdk.nio.zipfs.ZipFileSystemProvider.newFileSystem(ZipFileSystemProvider.java:123)
        at java.base/java.nio.file.FileSystems.newFileSystem(FileSystems.java:339)
        at java.base/java.nio.file.FileSystems.newFileSystem(FileSystems.java:288)
        at org.lanternpowered.terre.impl.StandaloneMain.main(StandaloneMain.java:53)
Cybermaxke commented 11 months ago

Fixed in https://github.com/LanternPowered/Terre/commit/767bb934ca9a480aff42f7a09706a6189d60307c