Results 1 to 6 of 6

Thread: ZuckerDocs: Run File Indexer Error

  1. #1
    tm2000 is offline Sugar Community Member
    Join Date
    May 2005
    Posts
    49

    Default ZuckerDocs: Run File Indexer Error

    This is a GREAT addon... Installed using the Sugar Mod instller without errors and I'm able to add docs per user... BUT when I try to run the File Idexer, I get an error: sh: line 1: java: command not found

    Anyone have any ideas? Not a permission problem (777 for all for testing)... and it's the same error on a cPanel or Plesk install.

    Running > Sugar V3.5.1d with ZuckerDocs 1.4.1 and Zend PHP 4.3.11 no safe mode / Apache1.3.33 / Fedora Core2 / MySQL 4.0.25

  2. #2
    tm2000 is offline Sugar Community Member
    Join Date
    May 2005
    Posts
    49

    Default Re: ZuckerDocs: Run File Indexer Error

    FYI, here is my Java Version...

    # root
    # java -version
    java version "1.4.2_05"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_05-b04)
    Java HotSpot(TM) Client VM (build 1.4.2_05-b04, mixed mode)

  3. #3
    ftreml's Avatar
    ftreml is offline Sugar Community Member
    Join Date
    May 2005
    Location
    Vienna, Austria
    Posts
    399

    Default Re: ZuckerDocs: Run File Indexer Error

    Hi,
    try to edit modules/ZuckerDocs/FileIndex.php and insert the full path to your java installation.
    Florian

  4. #4
    tm2000 is offline Sugar Community Member
    Join Date
    May 2005
    Posts
    49

    Default Re: ZuckerDocs: Run File Indexer Error

    Thanks for the reply... Umm.... the only lines of code I see in filindex.php about Java are:

    PHP Code:
        if (strtoupper(substr(PHP_OS03)) === 'WIN') {
            
    $cmdline 'javaw -jar FileIndexer-1.1.5.jar 2>&1';
        } else {
            
    $cmdline "java -Djava.awt.headless=true -jar FileIndexer-1.1.5.jar 2>&1";
        } 
    So my java is installed here:: /usr/share/java/libgcj-3.3.3.jar
    I'm running Linux... so when I changed that second line to:

    PHP Code:
            $cmdline "/usr/share/java -Djava.awt.headless=true -jar FileIndexer-1.1.5.jar 2>&1";
        } 
    Says: sh: line 1: /usr/share/java: is a directory

    So tried this:

    PHP Code:
            $cmdline "/usr/share/java/libgcj-3.3.3.jar -Djava.awt.headless=true -jar FileIndexer-1.1.5.jar 2>&1";
        } 
    Says: Cannot execute a binary

    So, I have no idea what I'm doing...

  5. #5
    ftreml's Avatar
    ftreml is offline Sugar Community Member
    Join Date
    May 2005
    Location
    Vienna, Austria
    Posts
    399

    Default Re: ZuckerDocs: Run File Indexer Error

    run command "which java" in your command line and include the resulting full path in FileIndexer.php

  6. #6
    tm2000 is offline Sugar Community Member
    Join Date
    May 2005
    Posts
    49

    Default Re: ZuckerDocs: Run File Indexer Error

    That worked great... THANKS!

    FYI: Changed to:

    PHP Code:
            $cmdline "/usr/local/j2sdk1.4.2_05/bin/java -Djava.awt.headless=true -jar FileIndexer-1.1.5.jar 2>&1"

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •