Roxen.git / server / etc / env.d / java.pike

version» Context lines:

Roxen.git/server/etc/env.d/java.pike:10:    return 1;   }      static string findjre()   {    string dir =    (Process.popen("java -verbose 2>&1 | sed -n -e 's/^[^/]*//' -e "    "'s:/lib/rt.jar .*$::' -e p -e q")||"")-"\n";    if(check_jre_dir(dir))    return dir; -  foreach(`+(@Array.map(({"/usr/local", "/usr"}), +  foreach(`+(@Array.map(({"/usr/local", "/usr", "/usr/java"}),    lambda(string s) {    return Array.map(Array.map(({"jre*","jdk*","java*"}),    glob,    reverse(sort(get_dir(s)||    ({""}))))*    ({}),    lambda(string sb) {    return s+"/"+sb;    });    })), string d) {