Will not install with OpenJDK

mathieu - October 22, 2009 - 19:35
Project:Apache Solr Attachments
Version:6.x-2.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

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(

#1

pwolanin - October 27, 2009 - 17:55

Actually - 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.

#2

pwolanin - October 28, 2009 - 12:32
Status:active» fixed

shoudl be fixed in this issue http://drupal.org/node/490078

#3

System Message - November 11, 2009 - 13:00
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.