-
Notifications
You must be signed in to change notification settings - Fork 35
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
Getting "NoClassDefFoundError" Exception when executing Test on Ubuntu 16.04 #16
Comments
@tr4n2uil can you please resolve this issue. |
@gaurabhi1986 Please check pom.xml and ensure all dependencies are installed properly. Check out the following snippet from pom.xml in this repo:
I believe the error is coming since you haven't installed commons-io. Please check. |
Hi @tr4n2uil I have all the required dependencies installed , still getting this error. please solve this issue. Thanks, |
Please follow these steps and let us know if it worked:
This will run the example code which shows how to use |
Hi @tr4n2uil I am using this example as a reference to start Browserstack local, but still facing same problem, have modified pom.xml but nothing is working same error coming each time. Thanks, |
Can you try Also post the output (with error, if any) please. |
Hi @tr4n2uil I am getting below exception in you example branch 👍 [INFO] ------------------------------------------------------------------------ |
Seems like didn't set your access key in environment. Run the following, if linux/mac
or if windows then
then run as before
Again, post the output (with error, if any) please. |
Hi @tr4n2uil, Now getting this exception. [INFO] Installing Nexus Staging features: |
Cool. Pushed a minor change. Can you pull and re-run ?
Again, post the output with error, if any. |
Hi @tr4n2uil, Now getting this 👍 C:\Users\abhishek.gaur\browserstack-local-java>mvn compile && mvn -e exec:java -Dexec.mainClass=example.BrowserStackLocalExample |
Hi @tr4n2uil .. Please resolve this issues... |
Hey @gaurabhi1986 I just tested the example branch on the clone on Ubuntu 16.04 vagrant image. Things are working fine for me. In your case, the issue seems to be with the And to resolve this faster, without delays, just drop an email to [email protected] with the subject |
Hi @tr4n2uil I am not exporting env variable I am simply assigning string value to username and key variables. Same code sample is working when I set bsLocalArgs.put("binarypath", "/browserstack/BrowserStackLocal"); but it does not work when i did not set localbinary path. Can you please let me know do I need to set any proxy or something. |
@gaurabhi1986 Is this still an issue for you? |
While using this API I am getting below exception.
Can you please let me know How can I resolve this exception.
java.lang.NoClassDefFoundError: org/apache/commons/io/FileUtils
at com.browserstack.local.LocalBinary.downloadBinary(LocalBinary.java:96)
at com.browserstack.local.LocalBinary.getBinary(LocalBinary.java:57)
at com.browserstack.local.LocalBinary.(LocalBinary.java:26)
at com.browserstack.local.Local.start(Local.java:57)
Thanks,
Abhishek
The text was updated successfully, but these errors were encountered: