[ 
https://issues.apache.org/jira/browse/DIRSERVER-921?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12500752
 ] 

Ole Ersoy commented on DIRSERVER-921:
-------------------------------------

This may be automatically eliminated with the new script, but I figured I'd 
provide the information just in case.  I hard coded JAVA_HOME in the current 
1.5.0 apacheds script, but I still have to run as myself with root privileges.  
If I login with the root shell and do ./apacheds debug I get this message:

[EMAIL PROTECTED] ~]# cd /etc/init.d
[EMAIL PROTECTED] init.d]# ./apacheds debug
Warning: JAVA_HOME environment variable is not set.
  If scrip fails because sun.* classes could not be found
  you will need to set the JAVA_HOME environment variable
  to the installation directory of java.
APACHEDS_HOME=/usr/local/apacheds-1.5.0
CLASSPATH=:/lib/tools.jar:/usr/local/apacheds-1.5.0/bin/bootstrapper.jar:/usr/local/apacheds-1.5.0/bin/logger.jar:/usr/local/apacheds-1.5.0/bin/daemon.jar
Starting apacheds server in debug mode:
========================================================
Warning: the debug port is not set. Using 5005 default.
========================================================
./apacheds: line 221: /bin/java: No such file or directory

Also note that "scrip" instead of "script".


> init scripts don't recognize JRE 1.6
> ------------------------------------
>
>                 Key: DIRSERVER-921
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-921
>             Project: Directory ApacheDS
>          Issue Type: Improvement
>          Components: installer-plugin
>    Affects Versions: 1.5.0
>         Environment: Linux
>            Reporter: Chris Custine
>            Assignee: Chris Custine
>         Attachments: DIRSERVER-921.diff
>
>
> The current script doesn't recognize an installed 1.6 JRE so attempting to 
> start the service causes errors saying that JAVA_HOME isn't set.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to