0

I am trying to setup Selenium with PHPUnit for automated testing, but when I want to execute jar file using this command

java -jar /usr/local/bin/selenium-server-standalone-2.53.0.jar " 

it is showing this error:

enter image description here

How can I fix this? Please help.

timbre timbre
  • 12,648
  • 10
  • 46
  • 77
ashik
  • 3
  • 1

1 Answers1

0

Based on changelog, selenium requires Java 7 (1.7) or 8 (1.8) since release 2.47, while the screenshot you posted shows version 6 (1.6). So either you need to install Java to 7 or 8, or make it default, if it's already installed. Since it appears that you are on MacBook-Pro, check the following instructions: How do I install Java for my Mac?. If java 7 or 8 already installed, check this page on how to make it a default.

Community
  • 1
  • 1
timbre timbre
  • 12,648
  • 10
  • 46
  • 77
  • Thank you. I'll try to follow what you said. – ashik Jun 08 '16 at 14:53
  • I have upgraded the java version (http://prntscr.com/bdwdrm), but It is showing http://prntscr.com/bdwcae Why not showing like this http://prntscr.com/bdwd88 ? – ashik Jun 08 '16 at 15:07
  • it's quite different selenium version (2.25 vs. 2.53, they are 4 years apart), so log could have changed of course. But it says "Selenium server is up and running", so why don't you try to use it? – timbre timbre Jun 08 '16 at 15:19
  • Okay I am trying. Thanks a lot. – ashik Jun 08 '16 at 15:21
  • this looks like a completely different question. Post it separately and someone will hopefully answer – timbre timbre Jun 09 '16 at 18:02