Skip to content
This repository has been archived by the owner on Jun 10, 2023. It is now read-only.

Fails to execute :runApp #4

Open
JosephShenton opened this issue Nov 25, 2017 · 6 comments
Open

Fails to execute :runApp #4

JosephShenton opened this issue Nov 25, 2017 · 6 comments

Comments

@JosephShenton
Copy link

Hi there, it successfully built but it fails to run here's the error

Joseph$: gradle runApp

> Task :runApp FAILED
Exception in thread "main" org.openqa.selenium.WebDriverException: Specified firefox binary location does not exist or is not a real file: PATH_TO_TOR_BROWSER_FOLDERTor Browser\Browser\firefox.exe
Build info: version: '3.0.1', revision: '1969d75', time: '2016-10-18 09:49:13 -0700'
System info: host: 'Joes-MacBook.local', ip: '127.0.0.1', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.13', java.version: '9.0.1'
Driver info: driver.version: unknown
        at org.openqa.selenium.firefox.internal.Executable.<init>(Executable.java:59)
        at org.openqa.selenium.firefox.FirefoxBinary.<init>(FirefoxBinary.java:60)
        at logic.TwitterTask.perform(TwitterTask.java:34)
        at logic.Main.main(Main.java:18)


FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':runApp'.
> Process 'command '/Library/Java/JavaVirtualMachines/jdk-9.0.1.jdk/Contents/Home/bin/java'' finished with non-zero exit value 1

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

* Get more help at https://help.gradle.org

BUILD FAILED in 2s
3 actionable tasks: 1 executed, 2 up-to-date
@AdrianBZG
Copy link
Owner

Hi,

For sure it fails to run, take a look at the exception:

Exception in thread "main" org.openqa.selenium.WebDriverException: Specified firefox binary location does not exist or is not a real file: PATH_TO_TOR_BROWSER_FOLDERTor Browser\Browser\firefox.exe

You forgot to modify the PATH_TO_TOR_BROWSER_FOLDER constant in the program. This constant should point to the directory where you installed the Tor Browser.

@JosephShenton
Copy link
Author

Ah, I am running macOS what do I change that too?

@AdrianBZG
Copy link
Owner

Yes, you need to specify the directory where you have installed the Tor Browserw, because the runnable uses it as an anonymization mechanism.

@JosephShenton
Copy link
Author

So

/Applications/TorBrowser.app/Contents/MacOS/firefox
or
/Applications/TorBrowser.app

@AdrianBZG
Copy link
Owner

I'm not sure about the path in macOS (this was meant to run in Linux and Windows) but you should specify the route which has the "Tor Browser\Browser\firefox.exe" in it. This means, that in the path you specify, you should find the folder "Tor Browser", inside that folder, the folder "Browser", and inside that one, the executable firefox.exe.

@JosephShenton
Copy link
Author

still not working, i'll try on ubuntu what are the steps for that?

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

No branches or pull requests

2 participants