You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 10, 2023. It is now read-only.
I'm trying to build sample demo using as below command on Window system,
From the rootcross-platform-scale-2015-demo/ directory demo_app_android is an alias in .buckconfig for //android:demo-app. Either works. buck build demo_app_android
but I'm getting issue as below :
`Not using buckd because watchman isn't installed.
[-] PARSING BUCK FILES...FINISHED 0.0s [100%]
BUILD FAILED: //android:demo-app#compile_uber_r_dot_java failed on step javac wi
th an exception:
No system compiler found. Did you install the JRE instead of the JDK?
com.facebook.buck.util.HumanReadableException: No system compiler found. Did you
install the JRE instead of the JDK?
at com.facebook.buck.jvm.java.JdkProvidedInMemoryJavac.createCompiler(Jd
kProvidedInMemoryJavac.java:63)
at com.facebook.buck.jvm.java.Jsr199Javac.buildWithClasspath(Jsr199Javac
.java:124)
at com.facebook.buck.jvm.java.JavacStep.performBuild(JavacStep.java:200)
at com.facebook.buck.jvm.java.JavacStep.tryBuildWithFirstOrderDeps(Javac
Step.java:190)
at com.facebook.buck.jvm.java.JavacStep.execute(JavacStep.java:151)
at com.facebook.buck.step.DefaultStepRunner.runStepForBuildTarget(Defaul
tStepRunner.java:47)
at com.facebook.buck.rules.CachingBuildEngine.executeCommandsNowThatDeps
AreBuilt(CachingBuildEngine.java:1387)
at com.facebook.buck.rules.CachingBuildEngine.lambda$11(CachingBuildEngi
ne.java:339)
at com.facebook.buck.util.concurrent.WeightedListeningExecutorService.la
mbda$0(WeightedListeningExecutorService.java:77)
at com.google.common.util.concurrent.Futures$AsyncChainingFuture.doTrans
form(Futures.java:1442)
at com.google.common.util.concurrent.Futures$AsyncChainingFuture.doTrans
form(Futures.java:1433)
at com.google.common.util.concurrent.Futures$AbstractChainingFuture.run(
Futures.java:1408)
at com.google.common.util.concurrent.Futures$2$1.run(Futures.java:1177)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
We should add solution(s) for this to the Getting Started and/or Troubleshooting docs and incude the link in the error message. This is as much of a problem of setting up your PATH as copying files, and since it's part of the build environment setup it'll probably cause problems for a few folks.
FWIW, here's my process to diagnose the problem and fix it by updating the PATH before I build.
getSystemJavaCompiler() must be null to get the error message:
I'm trying to build sample demo using as below command on Window system,
From the root
cross-platform-scale-2015-demo/directory demo_app_android is an alias in .buckconfig for //android:demo-app. Either works. buck build demo_app_android
but I'm getting issue as below :
`Not using buckd because watchman isn't installed.
[-] PARSING BUCK FILES...FINISHED 0.0s [100%]
BUILD FAILED: //android:demo-app#compile_uber_r_dot_java failed on step javac wi
th an exception:
No system compiler found. Did you install the JRE instead of the JDK?
com.facebook.buck.util.HumanReadableException: No system compiler found. Did you
install the JRE instead of the JDK?
at com.facebook.buck.jvm.java.JdkProvidedInMemoryJavac.createCompiler(Jd
kProvidedInMemoryJavac.java:63)
at com.facebook.buck.jvm.java.Jsr199Javac.buildWithClasspath(Jsr199Javac
.java:124)
at com.facebook.buck.jvm.java.JavacStep.performBuild(JavacStep.java:200)
Step.java:190)
at com.facebook.buck.jvm.java.JavacStep.execute(JavacStep.java:151)
at com.facebook.buck.step.DefaultStepRunner.runStepForBuildTarget(Defaul
tStepRunner.java:47)
at com.facebook.buck.rules.CachingBuildEngine.executeCommandsNowThatDeps
AreBuilt(CachingBuildEngine.java:1387)
at com.facebook.buck.rules.CachingBuildEngine.lambda$11(CachingBuildEngi
ne.java:339)
at com.facebook.buck.util.concurrent.WeightedListeningExecutorService.la
mbda$0(WeightedListeningExecutorService.java:77)
at com.google.common.util.concurrent.Futures$AsyncChainingFuture.doTrans
form(Futures.java:1442)
at com.google.common.util.concurrent.Futures$AsyncChainingFuture.doTrans
form(Futures.java:1433)
at com.google.common.util.concurrent.Futures$AbstractChainingFuture.run(
Futures.java:1408)
at com.google.common.util.concurrent.Futures$2$1.run(Futures.java:1177)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
[-] BUILDING...FINISHED 0.5s [100%]`
Can anyone suggest me what I'm doing wrong in these steps according to https://buckbuild.com/setup/getting_started.html
The text was updated successfully, but these errors were encountered: