Main.java 482B

12345678910111213141516171819
  1. import com.zipcoder.server.Server;
  2. public class Main {
  3. public static void main(String[] args) {
  4. try {
  5. int port = 5000;
  6. Server server = new Server(port);
  7. System.out.println("\n***** Started server on port http://localhost:5000");
  8. server.start();
  9. } catch (Exception e) {
  10. System.err.println("Failed to start the server.");
  11. e.printStackTrace();
  12. System.exit(1);
  13. }
  14. }
  15. }