gloryhui / simple

Automatically exported from code.google.com/p/simple
0 stars 0 forks source link

jarsigner.exe not found because of wrong JAVA_HOME #4

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
On Windows System.getProperty("java.home") may point to Public JRE
location, not JDK location. Simple compiler extracts JAVA_HOME from
"java.home" property 
com.google.devtools.simple.compiler.Compiler:68:

private static final String JAVA_HOME = System.getProperty("java.home");

and can't find jarsigner.exe, because it is in JDK, not JRE.

So, JAVA_HOME should be extracted from environment variable as ANDROID_HOME
and SIMPLE_HOME:  
private static final String JAVA_HOME = System.getenv("JAVA_HOME");

Original issue reported on code.google.com by demakov@gmail.com on 29 Jul 2009 at 6:55

GoogleCodeExporter commented 8 years ago
Fix submitted and binary download updated. Thanks for figuring this out!

Original comment by simpleco...@gmail.com on 29 Jul 2009 at 8:14