I have call new instance firefox browser by Selenium webdriver
driver = new FirefoxDriver();
but there are a error
Seems like a compatibility issue to me. Firefox 38 is not officially supported by Selenium 2.45.
Downgrade to 35 or lower from here. You can also find the Selenium changelog here. See another answer here.
Selenium