The current test done in apachesolr_attachments.install is not compatible with the output from OpenJDK. Here's a patch that fixes this...
diff -u -r1.4 apachesolr_attachments.install
--- apachesolr_attachments.install 12 May 2009 20:47:42 -0000 1.4
+++ apachesolr_attachments.install 22 Oct 2009 19:34:50 -0000
@@ -30,7 +30,7 @@
$java = variable_get('apachesolr_attachments_java', 'java');
exec($java .' -version > '. $temp .' 2>&1');
$stderror = file_get_contents($temp);
- $found = preg_match('/Java.+Runtime Environment/', $stderror);
+ $found = preg_match('/Runtime Environment/', $stderror);
if (!$found) {
$requirements['apachesolr_attachments_java'] = array(
Comments
Comment #1
pwolanin commentedActually - this code should be reworked anyhow since I'm about finished with a patch to let you use remote Solr for extraction. In that case java is not needed at all locally.
Comment #2
pwolanin commentedshoudl be fixed in this issue http://drupal.org/node/490078