Getting http error when i try to launch simple website

Getting http error when i try to launch simple website,
I was able to launch the simulator snd connecting to host, but could not launch anyone please tell where i went wrong

I am getting the below error for the following setup in iphone simulator

Selenium webdriver 2.5.31
appium 1.4.13
Mac 10.11.6
xcode 7.3

Exception in thread “main” java.lang.NoClassDefFoundError: org/openqa/selenium/remote/HttpVerb
at io.appium.java_client.AppiumDriver.postC(
at io.appium.java_client.AppiumDriver.(
at web_mobile.Assignment.main(
Caused by: java.lang.ClassNotFoundException: org.openqa.selenium.remote.HttpVerb
at java.lang.ClassLoader.loadClass(
at sun.misc.Launcher$AppClassLoader.loadClass(
at java.lang.ClassLoader.loadClass(
… 3 more

here is the code

public static void main(String[] args) throws Exception {
	// TODO Auto-generated method stub

	//Mention all the Desired capabilities 
	DesiredCapabilities caps = new DesiredCapabilities();
	caps.setCapability("browserName", "safari");
	caps.setCapability("platformName", "iOS");
	caps.setCapability("deviceName", "iPhone 6");
	caps.setCapability("PlatformVersion", "9.3");
	//connect appium with local host
	AppiumDriver driver = new AppiumDriver(new URL(""), caps);

fixed it by importing java client 4.1.2