You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Archie Cobbs (Created) (JIRA)" <ji...@apache.org> on 2011/10/27 19:22:33 UTC
[jira] [Created] (DAEMON-224) Add /etc/alternatives/jre to the list
of JAVA_HOME suggestions on Linux
Add /etc/alternatives/jre to the list of JAVA_HOME suggestions on Linux
-----------------------------------------------------------------------
Key: DAEMON-224
URL: https://issues.apache.org/jira/browse/DAEMON-224
Project: Commons Daemon
Issue Type: Improvement
Components: Jsvc
Affects Versions: 1.0.7
Environment: Linux
Reporter: Archie Cobbs
Priority: Minor
On some flavors of Linux (e.g., openSUSE), the {{update-alternatives}} system is used to configure which JVM to use.
On these systems, {{$JAVA_HOME}} can always be set to {{/etc/alternatives/jre}}.
The following simple patch would add this to the list of places to look:
{noformat}
Index: src/native/unix/native/location.c
===================================================================
--- src/native/unix/native/location.c (revision 1189876)
+++ src/native/unix/native/location.c (working copy)
@@ -35,6 +35,7 @@
#elif defined(OS_LINUX) || defined(OS_SOLARIS) || defined(OS_BSD)
"/usr/java",
"/usr/local/java",
+ "/etc/alternatives/jre",
#elif defined(OS_CYGWIN)
"/cygdrive/c/WINNT/system32/java",
#elif defined(OS_SYSV)
{noformat}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Issue Comment Edited] (DAEMON-224) Add
/etc/alternatives/jre to the list of JAVA_HOME suggestions on Linux
Posted by "Mladen Turk (Issue Comment Edited) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DAEMON-224?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13139350#comment-13139350 ]
Mladen Turk edited comment on DAEMON-224 at 10/29/11 4:18 PM:
--------------------------------------------------------------
Patch committed. Thanks!
I added /etc/alternatives/java_sdk to the location search since this is usually used on RHEL/Fedora. Suppose SuSE uses the same approach for JDK. It is searched before JRE as it should be.
was (Author: mturk@apache.org):
Patch committed. Thanks!
I added /etc/alternatives/java_sdk to the location search since this is usually used on RHEL/Fedora. Suppose SuSE uses the same approach for SDK. It is searched before JDK as it should be.
> Add /etc/alternatives/jre to the list of JAVA_HOME suggestions on Linux
> -----------------------------------------------------------------------
>
> Key: DAEMON-224
> URL: https://issues.apache.org/jira/browse/DAEMON-224
> Project: Commons Daemon
> Issue Type: Improvement
> Components: Jsvc
> Affects Versions: 1.0.7
> Environment: Linux
> Reporter: Archie Cobbs
> Assignee: Mladen Turk
> Priority: Minor
> Fix For: 1.0.7
>
>
> On some flavors of Linux (e.g., openSUSE), the {{update-alternatives}} system is used to configure which JVM to use.
> On these systems, {{$JAVA_HOME}} can always be set to {{/etc/alternatives/jre}}.
> The following simple patch would add this to the list of places to look:
> {noformat}
> Index: src/native/unix/native/location.c
> ===================================================================
> --- src/native/unix/native/location.c (revision 1189876)
> +++ src/native/unix/native/location.c (working copy)
> @@ -35,6 +35,7 @@
> #elif defined(OS_LINUX) || defined(OS_SOLARIS) || defined(OS_BSD)
> "/usr/java",
> "/usr/local/java",
> + "/etc/alternatives/jre",
> #elif defined(OS_CYGWIN)
> "/cygdrive/c/WINNT/system32/java",
> #elif defined(OS_SYSV)
> {noformat}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (DAEMON-224) Add /etc/alternatives/jre to the list
of JAVA_HOME suggestions on Linux
Posted by "Sebb (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DAEMON-224?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sebb updated DAEMON-224:
------------------------
Fix Version/s: (was: 1.0.7)
1.0.8
> Add /etc/alternatives/jre to the list of JAVA_HOME suggestions on Linux
> -----------------------------------------------------------------------
>
> Key: DAEMON-224
> URL: https://issues.apache.org/jira/browse/DAEMON-224
> Project: Commons Daemon
> Issue Type: Improvement
> Components: Jsvc
> Affects Versions: 1.0.7
> Environment: Linux
> Reporter: Archie Cobbs
> Assignee: Mladen Turk
> Priority: Minor
> Fix For: 1.0.8
>
>
> On some flavors of Linux (e.g., openSUSE), the {{update-alternatives}} system is used to configure which JVM to use.
> On these systems, {{$JAVA_HOME}} can always be set to {{/etc/alternatives/jre}}.
> The following simple patch would add this to the list of places to look:
> {noformat}
> Index: src/native/unix/native/location.c
> ===================================================================
> --- src/native/unix/native/location.c (revision 1189876)
> +++ src/native/unix/native/location.c (working copy)
> @@ -35,6 +35,7 @@
> #elif defined(OS_LINUX) || defined(OS_SOLARIS) || defined(OS_BSD)
> "/usr/java",
> "/usr/local/java",
> + "/etc/alternatives/jre",
> #elif defined(OS_CYGWIN)
> "/cygdrive/c/WINNT/system32/java",
> #elif defined(OS_SYSV)
> {noformat}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (DAEMON-224) Add /etc/alternatives/jre to the
list of JAVA_HOME suggestions on Linux
Posted by "Mladen Turk (Resolved) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DAEMON-224?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mladen Turk resolved DAEMON-224.
--------------------------------
Resolution: Fixed
Fix Version/s: 1.0.7
Patch committed. Thanks!
I added /etc/alternatives/java_sdk to the location search since this is usually used on RHEL/Fedora. Suppose SuSE uses the same approach for SDK. It is searched before JDK as it should be.
> Add /etc/alternatives/jre to the list of JAVA_HOME suggestions on Linux
> -----------------------------------------------------------------------
>
> Key: DAEMON-224
> URL: https://issues.apache.org/jira/browse/DAEMON-224
> Project: Commons Daemon
> Issue Type: Improvement
> Components: Jsvc
> Affects Versions: 1.0.7
> Environment: Linux
> Reporter: Archie Cobbs
> Assignee: Mladen Turk
> Priority: Minor
> Fix For: 1.0.7
>
>
> On some flavors of Linux (e.g., openSUSE), the {{update-alternatives}} system is used to configure which JVM to use.
> On these systems, {{$JAVA_HOME}} can always be set to {{/etc/alternatives/jre}}.
> The following simple patch would add this to the list of places to look:
> {noformat}
> Index: src/native/unix/native/location.c
> ===================================================================
> --- src/native/unix/native/location.c (revision 1189876)
> +++ src/native/unix/native/location.c (working copy)
> @@ -35,6 +35,7 @@
> #elif defined(OS_LINUX) || defined(OS_SOLARIS) || defined(OS_BSD)
> "/usr/java",
> "/usr/local/java",
> + "/etc/alternatives/jre",
> #elif defined(OS_CYGWIN)
> "/cygdrive/c/WINNT/system32/java",
> #elif defined(OS_SYSV)
> {noformat}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (DAEMON-224) Add /etc/alternatives/jre to the
list of JAVA_HOME suggestions on Linux
Posted by "Mladen Turk (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DAEMON-224?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13139196#comment-13139196 ]
Mladen Turk commented on DAEMON-224:
------------------------------------
Will be added to 1.0.8 as part of JVM cleanup.
> Add /etc/alternatives/jre to the list of JAVA_HOME suggestions on Linux
> -----------------------------------------------------------------------
>
> Key: DAEMON-224
> URL: https://issues.apache.org/jira/browse/DAEMON-224
> Project: Commons Daemon
> Issue Type: Improvement
> Components: Jsvc
> Affects Versions: 1.0.7
> Environment: Linux
> Reporter: Archie Cobbs
> Priority: Minor
>
> On some flavors of Linux (e.g., openSUSE), the {{update-alternatives}} system is used to configure which JVM to use.
> On these systems, {{$JAVA_HOME}} can always be set to {{/etc/alternatives/jre}}.
> The following simple patch would add this to the list of places to look:
> {noformat}
> Index: src/native/unix/native/location.c
> ===================================================================
> --- src/native/unix/native/location.c (revision 1189876)
> +++ src/native/unix/native/location.c (working copy)
> @@ -35,6 +35,7 @@
> #elif defined(OS_LINUX) || defined(OS_SOLARIS) || defined(OS_BSD)
> "/usr/java",
> "/usr/local/java",
> + "/etc/alternatives/jre",
> #elif defined(OS_CYGWIN)
> "/cygdrive/c/WINNT/system32/java",
> #elif defined(OS_SYSV)
> {noformat}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira