

Run the following command in the terminal, replacing with the path you have from above.Īfterwards, run java -version again, and it should now say Java Version "1.8" Library/Internet Plug-Ins/ugin/Contents/Home We want most of this path, except the /bin/java on the end. Library/Internet Plug-Ins/ugin/Contents/Home/bin/java It will look something similar to the following: If you go to your System Preferences -> Java -> Java -> View. The second, is safer, and what I am putting here.

There are two ways to fix this, the first is dangerous, and what everyone else seems to recommend. The previous way to do this was to change the symlink manually, however, since El Capitan, Apple have made certain folders unchangable even to admin users, with their Rootless install. If you run java -version in your terminal, you'll see Java Version "1.6", you want this to say Java Version "1.8". You should go to Oracle, and download the latest JRE version ( )Īfter this has been installed, you will have Java 8 on your machine, but it will not update the terminal properly. This is pointing to the incorrect folder, and the error is because the application was compiled with a higher version of JRE than the machine is running in the terminal. The recommended fix for this online is to change the symlink that Mac OS X has to Java, which you can find by running echo $JAVA_HOME in the terminal. Selenium Standalone has exited with code 1 When trying to run webdriver-manager start on El Capitan, you may get an error saying: Exception in thread "main" : org/openqa/grid/selenium/GridLauncher : Unsupported major.minor version 51.0Īt 1(Native Method)Īt (ClassLoader.java:637)Īt (ClassLoader.java:621)Īt (SecureClassLoader.java:141)Īt (URLClassLoader.java:283)Īt $000(URLClassLoader.java:58)Īt $1.run(URLClassLoader.java:197)Īt (Native Method)Īt (URLClassLoader.java:190)Īt (ClassLoader.java:306)Īt $AppClassLoader.loadClass(Launcher.java:301)Īt (ClassLoader.java:247)
