我仍在尝试构建 selenium 开源项目。
根据我的最后一个问题,将 python 降级到 2.7 解决了一个初始问题。
但是,我现在一直(在两台机器上尝试过)收到关于 jdk 的错误:
C:\Users\Mark\selenium>go.bat
(in C:/Users/Mark/selenium)
python C:/Users/Mark/selenium/buck-out/crazy-fun/7c1417f319649e9fd58fd3f97f36f42c870b1790/buck.pex kill
Build ID: 22661051-9fce-45f4-96b2-1fd0e2fbadcd
[-] PARSING BUCK FILES...FINISHED 18.8s [100%]
BUILD FAILED: //java/client/test/org/openqa/selenium/testing/drivers:browser failed:
javac -source 8 -target 8 -sourcepath -g -proc:none -d C:\Users\Mark\selenium\buck-out\bin\java\client\test\org\openqa\selenium\testing\drivers\lib__browser__classes -classpath '' @buck-out\gen\java\client\test\org\openqa\selenium\testing\drivers\__browser__srcs
No system compiler found. Did you install the JRE instead of the JDK?
[-] BUILDING...FINISHED 6.3s [100%] (35/333 JOBS, 4 UPDATED, 4 [1.2%] CACHE MISS)
[-] DOWNLOADING... (0.00 B/S AVG, TOTAL: 0.00 B, 0 Artifacts)
go aborted!
Buck build failed with exit code: 1
但是,我的路径上肯定有 java 和 javac:
C:\Users\Mark\selenium>javac -version
javac 1.8.0_144
C:\Users\Mark\selenium>java -version
java version "1.8.0_144"
Java(TM) SE Runtime Environment (build 1.8.0_144-b01)
Java HotSpot(TM) 64-Bit Server VM (build 25.144-b01, mixed mode)
我还检查了 %JAVA_HOME%:
C:\Users\Mark\selenium>echo %JAVA_HOME%
C:\Program Files\Java\jdk1.8.0_144
我进行了搜索和搜索,但是虽然网上有几个人在使用 buck 时在其他项目上遇到过类似的问题,但没有人能解决我的问题。
欢迎回答,也欢迎理论作为评论!