selenium webdriver failed with: java.lang.NoClassDefFoundError: Could not initialize class sun.nio.ch.FileChannelImpl
<p>I am working with selenium and while trying to run a simple test I get:</p>

<p>java.lang.NoClassDefFoundError: Could not initialize class sun.nio.ch.FileChannelImpl</p>

<p>I have search stack's posts and found only this one: <a href="https://stackoverflow.com/questions/18444785/java-lang-noclassdeffounderror-could-not-initialize-class-sun-nio-ch-filechanne">java.lang.NoClassDefFoundError: Could not initialize class sun.nio.ch.FileChannelImpl</a></p>

<p>But the answer there dodn't helped me. 
The webdriver is not been initialized and get: </p>

<p>Failed to invoke configuration method com.tf.qa.tempTests.tests.TempTestBase.setDriver:Could not initialize class sun.nio.ch.FileChannelImpl</p>

<p>Details: </p>

<p>Build info: version: '2.46.0', os.name: 'Windows 7', os.arch: 'x86', os.version: '6.1', java.version: '1.8.0_40'
Driver info: org.openqa.selenium.remote.RemoteWebDriver</p>

<p>any help will be appreciated. </p>