[293398] HTTP Preview Server does not start - "Could not find JRE
executable"
diff --git a/plugins/org.eclipse.wst.server.preview.adapter/src/org/eclipse/wst/server/preview/adapter/internal/core/PreviewLaunchConfigurationDelegate.java b/plugins/org.eclipse.wst.server.preview.adapter/src/org/eclipse/wst/server/preview/adapter/internal/core/PreviewLaunchConfigurationDelegate.java
index 8359599..5dcb985 100644
--- a/plugins/org.eclipse.wst.server.preview.adapter/src/org/eclipse/wst/server/preview/adapter/internal/core/PreviewLaunchConfigurationDelegate.java
+++ b/plugins/org.eclipse.wst.server.preview.adapter/src/org/eclipse/wst/server/preview/adapter/internal/core/PreviewLaunchConfigurationDelegate.java
@@ -168,12 +168,12 @@
 	}
 
 	protected static File getJavaExecutable() {
-		// do not detect on the Mac OS
+		// set the 'java.home' system property on the Mac OS
 		if (Platform.getOS().equals(Constants.OS_MACOSX))
-			return null;
+			System.setProperty("java.home", "/Library/Java/Home");
 		
 		// retrieve the 'java.home' system property. If that directory doesn't exist, return null
-		File javaHome; 
+		File javaHome;
 		try {
 			javaHome = new File(System.getProperty("java.home")).getCanonicalFile();
 		} catch (IOException e) {