我还在尝试建立selenium开源项目。
As per my last question,将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时在其他项目上遇到了类似的问题,但是没有人能找到解决问题的解决方案。
答案很受欢迎,理论也受到欢迎!