nakkaya/ferret

Builds with wrong JDK?

Closed this issue · 1 comments

Hello -- I am trying to get ferret to work on MacOS, but having some problems. First the build script works correctly, tangling out the source and running lein uberjar.

./build
Setting ‘package-selected-packages’ temporarily since "emacs -q" would overwrite customizations
Setting ‘package-selected-packages’ temporarily since "emacs -q" would overwrite customizations
Package ‘htmlize-’ is unavailable
Compiling ferret.core
Compiling ferret.core
Created /Users/bbeckman/Documents/ferret/src/target/interim.jar
Created /Users/bbeckman/Documents/ferret/src/target/ferret.jar

However, after that, ferret does not execute. It's looking for a version of JDK that I do not have

$ ./ferret
./ferret: line 8: /Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/bin/java: No such file or directory
./ferret: line 8: exec: /Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/bin/java: cannot execute: No such file or directory

I have version 131, not 121.

$ java -version
java version "1.8.0_131"
Java(TM) SE Runtime Environment (build 1.8.0_131-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.131-b11, mixed mode)

I have not been able to find anything in the .org file that refers to jdk 121 (e.g., find . -type f -exec grep 121 "{}" ';' doesn't find anything relevant to the build). My version of leiningen is up-to-date.

$ lein upgrade
The script at /usr/local/bin/lein will be upgraded to the latest stable version.
Do you want to continue [Y/n]? y

Upgrading...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   137  100   137    0     0    398      0 --:--:-- --:--:-- --:--:--   449
100 12871  100 12871    0     0  11375      0  0:00:01  0:00:01 --:--:-- 11375
Leiningen is already up-to-date.
Leiningen 2.7.1 on Java 1.8.0_131 Java HotSpot(TM) 64-Bit Server VM

I can't figure this one out. Blocked until someone help.

See This thread in groups for resolution.