0
を使用してチャットクライアントを作る最初の段階で立ち往生私はピシャリとEclipseでJavaを使用してチャットクライアントを構築するために始めていたので、私は次のコードを書き始めた:がピシャリ
import org.jivesoftware.smack.XMPPConnection;
public class A {
// Create a connection to the igniterealtime.org XMPP server.
XMPPConnection connection = new XMPPConnection("myserver.com");
// Connect to the server
connection.connect();
// Most servers require you to login before performing other tasks.
connection.login("admin2", "123");
public static void main(String[] args) {
// TODO Auto-generated method stub
A a= new A();
}
}
をしかし、私は取得しています2つのエラー以下:
Syntax error on token "connect", Identifier expected after this token
と
Syntax error on token ".", @ expected after this token
誰がここに私を助けることができますか?
あなたに感謝を –