<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -6,14 +6,17 @@
 # Check the pre-requisites for Android development
 #
 
-import os, sys, subprocess, re
+import os, sys, subprocess, re, platform
 
 def run(args):
 	return subprocess.Popen(args, stderr=subprocess.PIPE, stdout=subprocess.PIPE).communicate()[0]
 	
 def check_java():
 	try:
-		run(['javac','-version'])	
+		if platform.system() == &quot;Windows&quot;:
+			run(['cmd.exe','/C','javac','-version'])
+		else:
+			run(['javac','-version'])	
 	except:
 		print &quot;Missing Java SDK. Please make sure Java SDK is on your PATH&quot;
 		sys.exit(1)</diff>
      <filename>support/android/prereq.py</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>691638653b67173a4e50f1fccde50be0e4b7100e</id>
    </parent>
  </parents>
  <author>
    <name>donthorp</name>
    <email>don@donthorp.net</email>
  </author>
  <url>http://github.com/appcelerator/titanium_mobile/commit/da813784a1af447ddaf9be21367aeb539cecffc7</url>
  <id>da813784a1af447ddaf9be21367aeb539cecffc7</id>
  <committed-date>2009-07-03T11:28:33-07:00</committed-date>
  <authored-date>2009-07-03T11:28:33-07:00</authored-date>
  <message>[16 state:resolved] Fix to allow detection of java on Windows. Verified on XP. Checking in to rebuild and verify on Vista and Windows 7</message>
  <tree>8201c34c9082aff1f645c13cc95d770f04e23780</tree>
  <committer>
    <name>donthorp</name>
    <email>don@donthorp.net</email>
  </committer>
</commit>
