org/jivesoftware/smack/SmackException : Unsupported major.minor version 51.0

What`s wrong?My Jdk is 1.6 and smack is 4.0.6

my code is

XMPPConnection connection = new XMPPTCPConnection(“127.0.0.1”);

try {

connection.connect();

connection.login(“test1”, “123456”);

} catch (SmackException e) {

// TODO Auto-generated catch block

e.printStackTrace(); }

catch (IOException e) {

// TODO Auto-generated catch block

e.printStackTrace(); }

catch (XMPPException e) {

// TODO Auto-generated catch block

e.printStackTrace();

}

switch to 1.7 there is a switch case used inside smack core library for check String variables

using string variable in a switch case only works with jdk1.7