[英]Raspberry Pi selenium chromedriver "/usr/bin/chromedriver: 5: Syntax error: word unexpected (expecting ")")"
I want to run my java standalone jar on my raspberry pi (Model 3B+).我想在我的树莓派(型号 3B+)上运行我的 java 独立 jar。 It depends on seleneium, so it needs chromedriver.它依赖于硒,所以它需要chromedriver。 I have installed java 14 and also chromedrivers version 95.0.4638.78-rpt6 via我已经通过
sudo apt-get install chromium-chromedriver
When I start my application now, I get this log:当我现在启动我的应用程序时,我得到了这个日志:
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further detail s.
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.bouncycastle.jcajce.provider.drbg.DRBG (file:/home/pi/App.jar) to constructor sun.security.provider.Sun()
WARNING: Please consider reporting this to the maintainers of org.bouncycastle.j cajce.provider.drbg.DRBG
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflect ive access operations
WARNING: All illegal access operations will be denied in a future release
/usr/bin/chromedriver: 5: Syntax error: word unexpected (expecting ")")
What does the error code Syntax error: word unexpected (expecting ")") says?错误代码Syntax error: word unexpected (expecting ")")是什么意思? Whats the problem?有什么问题? And how to fix?以及如何解决?
The error was due to the request failing as the site was not online.该错误是由于请求失败,因为该站点不在线。 I also faced the same problem before.我之前也遇到过同样的问题。 For example, I asked chrome to open a URL but it failed (not online) and so this useless error was thrown.例如,我要求 chrome 打开一个 URL 但它失败了(不在线),所以抛出了这个无用的错误。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.