public Server() {
		// Show server view
		serverView = new ServerView(this);
		serverView.getFrame().setVisible(true);

		// Start server and listen from port 1099
		Rmi rmiService = null;
		try {
			rmiService = new RmiImpl();
			Registry registry = LocateRegistry.createRegistry(1099);
			registry.rebind("pcs", rmiService); // Object will be used as a
												// service by clients
		} catch (RemoteException e) {
			// Problem with starting the server
			JOptionPane.showMessageDialog(null,
					"Server can't start service. Please restart server.");
			e.printStackTrace();
		}

		// Start server updater thread
		serverUpdater = new ServerUpdater();
		serverUpdater.start();

		// Start code runner thread
		codeRunnerThread = new CodeRunnerThread();
		codeRunnerThread.start();
	}