Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No Java runtime present, requesting install. Error: Another Selenium process is already running #140

Closed
starryeyez024 opened this issue Oct 14, 2015 · 8 comments

Comments

@starryeyez024
Copy link

@vvo, In my Polymer project, in the file: polymer/node_modules/web-component-tester/node_modules/wct-local/package.json, it specifies using selenium-standalone 4.6.1 or greater and I still have this issue.

package.json:

  "dependencies": {
    "chalk": "^1.1.1",
    "cleankill": "^1.0.0",
    "freeport": "^1.0.4",
    "launchpad": "^0.4.4",
    "lodash": "^3.0.1",
    "selenium-standalone": "^4.6.1",
    "which": "^1.0.8"
  },

error message:

^MBP:polymer $ gulp test:local
[15:11:20] Using gulpfile ~/Sites/polymer/gulpfile.js
[15:11:20] Starting 'wct:local'...
Installing and starting Selenium server for local browsers
----------
selenium-standalone installation starting
----------

---
selenium install:
from: http://selenium-release.storage.googleapis.com/2.47/selenium-server-standalone-2.47.1.jar
to: /Users/---/Sites/polymer/node_modules/web-component-tester/node_modules/wct-local/node_modules/selenium-standalone/.selenium/selenium-server/2.47.1-server.jar

---
chrome install:
from: http://chromedriver.storage.googleapis.com/2.18/chromedriver_mac32.zip
to: /Users/---/Sites/polymer/node_modules/web-component-tester/node_modules/wct-local/node_modules/selenium-standalone/.selenium/chromedriver/2.18-x64-chromedriver

---
File from http://selenium-release.storage.googleapis.com/2.47/selenium-server-standalone-2.47.1.jar has already been downloaded

---
File from http://chromedriver.storage.googleapis.com/2.18/chromedriver_mac32.zip has already been downloaded
-----
selenium-standalone installation finished
-----
No Java runtime present, requesting install.
[15:11:22] 'wct:local' errored after 1.41 s
[15:11:22] Error: Another Selenium process is already running

I also get a popup saying "To view this web content, you need to install the Java Runtime Environment" - which I have done. When I visit the Java install page it says "You have the recommended Java installed (Version 8 Update 60). "

originally posted here

@sebs
Copy link

sebs commented Oct 16, 2015

did you find a solution?

@RedBulli
Copy link

I got this working by installing the Java Development Kit

@sebs
Copy link

sebs commented Oct 18, 2015

I had a similar experience: My ableton live was giving me the same message and I installed a OLD Java development Kit. That worked for ableton live and its "Max for Live" system. Coming from this I found a helper to manage different java versions.

https://github.com/gcuisinier/jenv

If you are using your computer for more than one job, there might be a conflict anyways. However with the new Java version, I got a new error but a very good clue. ;)

Ill be back with more news ;)

@vvo
Copy link
Collaborator

vvo commented Oct 19, 2015

@starryeyez024 Do you have java installed? What does java -version states? Thanks

@starryeyez024
Copy link
Author

I think the source of my problems was that I needed to install a JDK. I didn't realize a JRE and JDK were two distinct things. I was getting this:

$ java -version
No Java runtime present, requesting install.
$ javac -version
No Java runtime present, requesting install.

Then I Installed: Java SE 8ux
and ran the commands again:

$ javac -version
javac 1.8.0_65
$ java -version
java version "1.8.0_65"
Java(TM) SE Runtime Environment (build 1.8.0_65-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.65-b01, mixed mode)

@vvo
Copy link
Collaborator

vvo commented Oct 26, 2015

Great, fixed?

@DullReferenceException
Copy link

It would be really great if this was reopened and the fix was somehow giving an error message that describes that a JDK cannot be found; many developers at my company have been bit by this and wasted time searching for a rogue running selenium process that does not exist.

@vvo
Copy link
Collaborator

vvo commented Jun 30, 2016

I am open to PR on this subject :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants