This compiles for me, but will not compile on the server
package com.codegym.task.task31.task3110;
import com.codegym.task.task31.task3110.command.ExitCommand;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.nio.file.Paths;
public class Archiver {
public static void main(String[] args) {
try ( BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)) ) {
String sPath;
System.out.println("Enter (full) path for archive file:");
sPath = reader.readLine();
ZipFileManager zipFileManager = new ZipFileManager(Paths.get(sPath));
System.out.println("Enter (full) path for file to be zipped:");
sPath = reader.readLine();
zipFileManager.createZip(Paths.get(sPath));
new ExitCommand().execute();
} catch (Exception e) {}
}
}