Selenium Install "A Java Exception has occurred"

459 views
Skip to first unread message

medwa...@gmail.com

unread,
Mar 15, 2017, 11:35:18 PM3/15/17
to Selenium Users

I got an old computer that had an older version of Selenium on it so I uninstalled it and downloaded 3.3.1 but when I tried to install it I got a "A Java Exception has occurred" error.  I want to use Python not java. How do I fix this?

Krishnan Mahadevan

unread,
Mar 15, 2017, 11:43:26 PM3/15/17
to seleniu...@googlegroups.com

Can you please help elaborate as to what do you mean by “I tried to install 3.3.1” ??

Maybe you could help list out all the steps that you followed one by one ?

 

 

I think you ended up downloading the uber jar from here and you are trying to run it as below

 

09:11 $ java -jar selenium-server-standalone-3.3.1.jar

09:11:35.152 INFO - Selenium build info: version: '3.3.1', revision: '5234b32'

09:11:35.153 INFO - Launching a standalone Selenium Server

2017-03-16 09:11:35.223:INFO::main: Logging initialized @579ms to org.seleniumhq.jetty9.util.log.StdErrLog

09:11:35.382 INFO - Driver provider org.openqa.selenium.ie.InternetExplorerDriver registration is skipped:

registration capabilities Capabilities [{ensureCleanSession=true, browserName=internet explorer, version=, platform=WINDOWS}] does not match the current platform MAC

09:11:35.382 INFO - Driver provider org.openqa.selenium.edge.EdgeDriver registration is skipped:

registration capabilities Capabilities [{browserName=MicrosoftEdge, version=, platform=WINDOWS}] does not match the current platform MAC

09:11:35.383 INFO - Driver class not found: com.opera.core.systems.OperaDriver

09:11:35.383 INFO - Driver provider com.opera.core.systems.OperaDriver registration is skipped:

Unable to create new instances on this machine.

09:11:35.383 INFO - Driver class not found: com.opera.core.systems.OperaDriver

09:11:35.383 INFO - Driver provider com.opera.core.systems.OperaDriver is not registered

2017-03-16 09:11:35.622:INFO:osjs.Server:main: jetty-9.2.20.v20161216

2017-03-16 09:11:35.668:INFO:osjsh.ContextHandler:main: Started o.s.j.s.ServletContextHandler@1bce4f0a{/,null,AVAILABLE}

2017-03-16 09:11:35.720:INFO:osjs.AbstractConnector:main: Started ServerConnector@3fee9989{HTTP/1.1,[http/1.1]}{0.0.0.0:4444}

 

For running the uber jar you definitely need JDK8 to be installed on your machine. So please check if that pre-requisite is satisfied.

 

 

Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/

My Technical Scribbings @ http://rationaleemotions.wordpress.com/

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/ece6b786-7081-43ea-8af7-9a092dd7eee6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

medwa...@gmail.com

unread,
Mar 20, 2017, 1:38:58 PM3/20/17
to Selenium Users
I downloaded and installed (jdk-8u121-windows-x64) the JDK8 file but when I double click on the downloaded (selenium-server-standalone-3.3.1.jar) Selenium file nothing happened.

medwa...@gmail.com

unread,
Mar 20, 2017, 2:00:32 PM3/20/17
to Selenium Users
I got the JDk8 from (http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html) Java SE Development Kit 8u121, Windows x64 addition.

On Wednesday, March 15, 2017 at 8:35:18 PM UTC-7, medwa...@gmail.com wrote:

⇜Krishnan Mahadevan⇝

unread,
Mar 20, 2017, 10:09:12 PM3/20/17
to Selenium Users

Have you tried opening up a command prompt and then starting the server as a :

1. Standalone (or)
2. Hub (or)
3. Node

Via java -jar command ?


--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.
--

medwa...@gmail.com

unread,
Mar 21, 2017, 4:08:21 PM3/21/17
to Selenium Users
I don't know how to do that.
I installed:
jdk-8u121-windows-x64
Java 8 update
python-3.6.0-amd64-webinstall

I downloaded selenium-server-standalone-3.3.1 but when I double click on it nothing happens.
What do I type on the cmd to install Selenium so i can use it with Python.
The latest version of python does not create a "C:\Python34" folder and all the install directions I have found call for that.

⇜Krishnan Mahadevan⇝

unread,
Mar 22, 2017, 1:52:05 AM3/22/17
to Selenium Users
You should be reading here : http://selenium-python.readthedocs.io/

Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/
My Technical Scribbings @ http://rationaleemotions.wordpress.com/

To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/7b1d101f-2f69-477b-9f1d-36b72dd5ebc4%40googlegroups.com.

medwa...@gmail.com

unread,
Mar 22, 2017, 12:24:00 PM3/22/17
to Selenium Users
I did read that. I have Python 3.6 installed:

Which should mean I have Pip installed but when I try to install Selenium thru the command prompt I get

What am i missing?
Auto Generated Inline Image 1
Auto Generated Inline Image 2

medwa...@gmail.com

unread,
Mar 22, 2017, 5:21:49 PM3/22/17
to Selenium Users
Thank you for all your help.  The path wasn't set up correctly.
Reply all
Reply to author
Forward
0 new messages