federatedcloud / COBRAContainers

Containers and scripts for COBRA modeling
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Java patch is not working - try system java or FHS #6

Open bbarker opened 5 years ago

bbarker commented 5 years ago

Unfortunately, will likely need to upgrade MATLAB to support jdk8 as well - we're just one version off currently (2017a - would need at least 2017b; 2019a clients are purportedly on RedCloud so we can copy that over and try the jdk option).

See here: https://www.mathworks.com/matlabcentral/answers/103056-how-do-i-change-the-java-virtual-machine-jvm-that-matlab-is-using-on-macos

In particular, this is the part that isn't working for Java:

https://github.com/federatedcloud/COBRAContainers/blob/master/nix/shells/MATLAB/patchMATLAB.sh#L16

bbarker commented 5 years ago

See this gist for the error description: https://gist.github.com/bbarker/366940b3490acef8120ea2e77ce81dc1

A suggestion is to try FHS: https://nixos.org/nixpkgs/manual/#sec-fhs-environments e.g. https://github.com/NixOS/nixpkgs/issues/50344#issuecomment-457423597