Re: Easy way to find JAVA_HOME

2012-06-20 Thread Andi Vajda
wrote: > Hi Andi, > > I posted the suggestion over a month ago and didn't hear back from you. > Do you like my idea? > > Christian > > -------- Original-Nachricht > Betreff: Easy way to find JAVA_HOME > Datum: Tue, 08 May 2012 21:44:53 +0200 > Von:

Easy way to find JAVA_HOME

2012-05-08 Thread Christian Heimes
Hello, I found a much easier to detect the path to JAVA_HOME on Unix-like platforms where the java command is in the search path. "java -verbose" prints out the paths of all loaded JAR files. Christian --- import subprocess import re import os PATH_RE = re.compile("Loaded\ .*\ from\ (.*)/jre/li