Index: /CKReleaser/trunk/ckreleaser.js
===================================================================
--- /CKReleaser/trunk/ckreleaser.js	(revision 2892)
+++ /CKReleaser/trunk/ckreleaser.js	(revision 2893)
@@ -5,5 +5,4 @@
 
 importPackage( org.mozilla.javascript );
-importClass( java.lang.System );
 importClass( java.io.File );
 
Index: /CKReleaser/trunk/includes/ckreleaser.js
===================================================================
--- /CKReleaser/trunk/includes/ckreleaser.js	(revision 2892)
+++ /CKReleaser/trunk/includes/ckreleaser.js	(revision 2893)
@@ -5,7 +5,9 @@
 
 importClass( java.lang.Integer );
+importClass( java.lang.System );
 
 var CKRELEASER = {
 	verbose : 0,
+	os : System.getProperty( "os.name" ).substring(0,3).toLowerCase(),
 
 	timestamp :( function()
Index: /CKReleaser/trunk/includes/releaser.js
===================================================================
--- /CKReleaser/trunk/includes/releaser.js	(revision 2892)
+++ /CKReleaser/trunk/includes/releaser.js	(revision 2893)
@@ -82,5 +82,5 @@
 	}
 
-	 function minifyFiles( file )
+	function minifyFiles( file )
 	{
 		if ( file.isDirectory() )
@@ -291,6 +291,20 @@
 				};
 
-				runCommand( "php", "tools/fixlineends/fixlineends.php", "--eolstripwhite", "--eofnewline", "--eofstripwhite", "--nohidden",
-						"--nosystem", CKRELEASER.releaseDir, o );
+				try
+				{
+					runCommand( "php", "tools/fixlineends/fixlineends.php", "--eolstripwhite", "--eofnewline", "--eofstripwhite",
+							"--nohidden", "--nosystem", CKRELEASER.releaseDir, o );
+				}
+				catch ( e )
+				{
+					if ( CKRELEASER.os == 'win' )
+					{
+						throw "php is not recognized as an internal or external command. Make sure that PHP is installed in your system and the 'Path' environment variable in your environment is pointing to it."
+					}
+					else
+					{
+						throw "php: command not found. Make sure that PHP is installed in your system and the PATH variable in your environment is pointing to it."
+					}
+				}
 
 				if ( CKRELEASER.verbose )
