Branch: Tag:

2005-10-25

2005-10-25 16:05:30 by Anders Johansson <anders@roxen.com>

Updated to handle new naming conventions in a modern jre. It previously failed to update LD_LIBRARY_PATH.

Rev: server/etc/env.d/java.pike:1.18

82:    {    if(arch == "")    arch = "_"; +  else if(arch == "x86_64") +  arch = "amd64";    -  foreach(({arch+"/"+threads_type, arch+"/classic", arch}), string dir) { +  foreach(({arch+"/"+threads_type, arch+"/classic", arch+"/server", arch}), string dir) {    mixed s = file_stat(jrehome+"/lib/"+dir);    if(s && s[1]==-2)    env->append("LD_LIBRARY_PATH", jrehome+"/lib/"+dir);