google / battery-historian

Battery Historian is a tool to analyze battery consumers using Android "bugreport" files.
Other
5.32k stars 959 forks source link

Failed to run command "java -jar" closure-compiler #195

Open sonrohan opened 4 years ago

sonrohan commented 4 years ago

Error:

rh:battery-historian rohan$ go run setup.go

Generating JS runfiles...

Generating optimized JS runfiles...
failed to run command "java -jar /Users/rohan/work/src/github.com/google/battery-historian/third_party/closure-compiler/closure-compiler-v20170409.jar --closure_entry_point historian.upload --js js/*.js --js /Users/rohan/work/src/github.com/google/battery-historian/third_party/closure-library/closure/goog/base.js --js /Users/rohan/work/src/github.com/google/battery-historian/third_party/closure-library/closure/goog/**/*.js --only_closure_dependencies --generate_exports --js_output_file /Users/rohan/work/src/github.com/google/battery-historian/compiled/historian-optimized.js --output_manifest /Users/rohan/work/src/github.com/google/battery-historian/compiled/manifest.MF --compilation_level SIMPLE_OPTIMIZATIONS":
  exit status 1
  /Users/rohan/work/src/github.com/google/battery-historian/third_party/closure-library/closure/goog/base.js:2084: WARNING - Parse error. unknown @suppress parameter: strictMissingProperties
 * @suppress {strictMissingProperties} superClass_ and base is not defined on
              ^

Java

rh:battery-historian rohan$ java --version
java 13.0.1 2019-10-15
Java(TM) SE Runtime Environment (build 13.0.1+9)
Java HotSpot(TM) 64-Bit Server VM (build 13.0.1+9, mixed mode, sharing)

Python

rh:battery-historian rohan$ python --version
Python 2.7.10

Go

rh:battery-historian rohan$ go version
go version go1.13.5 darwin/amd64

I suppose I have an incompatible version of Java, but it isn't stated which I should use inside of the README. So if that's the case, can we add the correct version to the README?

normallytangent commented 4 years ago

I got the same error

Hirohumi commented 4 years ago

yes, got the same error

go1.13.8 darwin/amd64 Python 2.7.15 java 13.0.2 2020-01-14

also tried java 1.8, same error still

sunxiaowen-zz commented 4 years ago

yes ,i got the same error too ,so do u solve this problem?

sonrohan commented 4 years ago

Hey guys, sorry no. I just gave up.

sunxiaowen-zz commented 4 years ago

Emm……thanks,I try something else