25 lines
667 B
Java
25 lines
667 B
Java
package de.vanitasvitae.oxclient;
|
|
|
|
import java.util.Scanner;
|
|
|
|
import org.jivesoftware.smack.SmackConfiguration;
|
|
|
|
public class Main {
|
|
|
|
public static void main(String[] args) throws Exception {
|
|
|
|
SmackConfiguration.DEBUG = false;
|
|
SmackConfiguration.setDefaultReplyTimeout(10 * 1000);
|
|
|
|
String username, password;
|
|
Scanner scanner = new Scanner(System.in);
|
|
System.out.println("Please enter your JID:");
|
|
username = scanner.nextLine();
|
|
System.out.println("Please enter your password:");
|
|
password = scanner.nextLine();
|
|
|
|
Client client = new Client(username, password);
|
|
client.start();
|
|
}
|
|
}
|