cambecc / grib2json

converts GRIB2 files to JSON
MIT License
356 stars 154 forks source link

Error when utility is run #18

Closed desiguel closed 8 years ago

desiguel commented 8 years ago

Hi Cameron,

When I try and run the utility I get the following error:

$ ./grib2json --help ./grib2json: 5: ./grib2json: /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java/bin/java: not found

, where the long java path is the value in my JAVA_HOME variable. When $JAVA_HOME is run standalone it runs java ok.

Any suggestions on what to try next?

A.

desiguel commented 8 years ago

I worked it out.. it looks like your code is appending /bin/java to the end of whatever is in JAVA_HOME. I just dropped /bin/java off the end of it and it works ok. Actually looks like my home dir was dodgy :)