You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "sam marshall (JIRA)" <ji...@apache.org> on 2012/11/06 23:24:11 UTC
[jira] [Created] (DAEMON-265) OS X 10.8: Cannot build jsvc with
java 7 installed
sam marshall created DAEMON-265:
-----------------------------------
Summary: OS X 10.8: Cannot build jsvc with java 7 installed
Key: DAEMON-265
URL: https://issues.apache.org/jira/browse/DAEMON-265
Project: Commons Daemon
Issue Type: Bug
Components: Jsvc
Affects Versions: 1.0.10
Environment: OS X 10.8.2
Oracle JDK 1.7.0_09
Reporter: sam marshall
I followed the instructions here to build jsvc:
https://tomcat.apache.org/tomcat-7.0-doc/setup.html#Unix_daemon
When I run the configure script, I get this:
{code}
*** Java compilation tools ***
checking for JDK os include directory... Cannot find jni_md.h in /System/Library/Frameworks/JavaVM.framework/Home/
configure: error: You should retry --with-os-type=SUBDIR
{code}
As a workaround, I can make it work like this:
{code}
./configure --with-java=/System/Library/Frameworks/JavaVM.framework/Versions/A/
{code}
However, the workaround shouldn't really be necessary on a standard install.
As Oracle JDK 1.7 is now the default/only supported JDK on OS X, this ought to work out of the box.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (DAEMON-265) OS X 10.8: Cannot build jsvc with
java 7 installed
Posted by "Mladen Turk (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DAEMON-265?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mladen Turk resolved DAEMON-265.
--------------------------------
Resolution: Fixed
Fix Version/s: 1.0.11
Added /usr/libexec/java_home check with configure
> OS X 10.8: Cannot build jsvc with java 7 installed
> --------------------------------------------------
>
> Key: DAEMON-265
> URL: https://issues.apache.org/jira/browse/DAEMON-265
> Project: Commons Daemon
> Issue Type: Bug
> Components: Jsvc
> Affects Versions: 1.0.10
> Environment: OS X 10.8.2
> Oracle JDK 1.7.0_09
> Reporter: sam marshall
> Fix For: 1.0.11
>
>
> I followed the instructions here to build jsvc:
> https://tomcat.apache.org/tomcat-7.0-doc/setup.html#Unix_daemon
> When I run the configure script, I get this:
> {code}
> *** Java compilation tools ***
> checking for JDK os include directory... Cannot find jni_md.h in /System/Library/Frameworks/JavaVM.framework/Home/
> configure: error: You should retry --with-os-type=SUBDIR
> {code}
> (Update: I think my initial workaround was incorrect, have updated.)
> You can make it work by pointing to the current command-line Java home, which can be found by running this command:
> {code}
> /usr/libexec/java_home
> {code}
> The result of this command will be something like:
> {code}
> /Library/Java/JavaVirtualMachines/jdk1.7.0_09.jdk/Contents/Home
> {code}
> You can therefore run configure as follows:
> {code}
> ./configure --with-java=/Library/Java/JavaVirtualMachines/jdk1.7.0_09.jdk/Contents/Home
> {code}
> As Oracle JDK 1.7 is now the default/only supported JDK for command-line use in current OS X versions, this really ought to work out of the box. Don't know how configure scripts work, so can't supply a patch, sorry.
> Note: I'm having an additional problem which may be related (will post as separate issue).
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (DAEMON-265) OS X 10.8: Cannot build jsvc with
java 7 installed
Posted by "sam marshall (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DAEMON-265?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
sam marshall updated DAEMON-265:
--------------------------------
Description:
I followed the instructions here to build jsvc:
https://tomcat.apache.org/tomcat-7.0-doc/setup.html#Unix_daemon
When I run the configure script, I get this:
{code}
*** Java compilation tools ***
checking for JDK os include directory... Cannot find jni_md.h in /System/Library/Frameworks/JavaVM.framework/Home/
configure: error: You should retry --with-os-type=SUBDIR
{code}
(Update: I think my initial workaround was incorrect, have updated.)
You can make it work by pointing to the current command-line Java home, which can be found by running this command:
/usr/libexec/java_home
The result of this command will be something like:
/Library/Java/JavaVirtualMachines/jdk1.7.0_09.jdk/Contents/Home
You can therefore run configure as follows:
{code}
./configure --with-java=/System/Library/Frameworks/JavaVM.framework
{code}
As Oracle JDK 1.7 is now the default/only supported JDK for command-line use in current OS X versions, this really ought to work out of the box. Don't know how configure scripts work, so can't supply a patch, sorry.
Note: I'm having an additional problem which may be related (will post as separate issue).
was:
I followed the instructions here to build jsvc:
https://tomcat.apache.org/tomcat-7.0-doc/setup.html#Unix_daemon
When I run the configure script, I get this:
{code}
*** Java compilation tools ***
checking for JDK os include directory... Cannot find jni_md.h in /System/Library/Frameworks/JavaVM.framework/Home/
configure: error: You should retry --with-os-type=SUBDIR
{code}
As a workaround, I can make it work like this:
{code}
./configure --with-java=/System/Library/Frameworks/JavaVM.framework/Versions/A/
{code}
However, the workaround shouldn't really be necessary on a standard install.
As Oracle JDK 1.7 is now the default/only supported JDK on OS X, this ought to work out of the box.
> OS X 10.8: Cannot build jsvc with java 7 installed
> --------------------------------------------------
>
> Key: DAEMON-265
> URL: https://issues.apache.org/jira/browse/DAEMON-265
> Project: Commons Daemon
> Issue Type: Bug
> Components: Jsvc
> Affects Versions: 1.0.10
> Environment: OS X 10.8.2
> Oracle JDK 1.7.0_09
> Reporter: sam marshall
>
> I followed the instructions here to build jsvc:
> https://tomcat.apache.org/tomcat-7.0-doc/setup.html#Unix_daemon
> When I run the configure script, I get this:
> {code}
> *** Java compilation tools ***
> checking for JDK os include directory... Cannot find jni_md.h in /System/Library/Frameworks/JavaVM.framework/Home/
> configure: error: You should retry --with-os-type=SUBDIR
> {code}
> (Update: I think my initial workaround was incorrect, have updated.)
> You can make it work by pointing to the current command-line Java home, which can be found by running this command:
> /usr/libexec/java_home
> The result of this command will be something like:
> /Library/Java/JavaVirtualMachines/jdk1.7.0_09.jdk/Contents/Home
> You can therefore run configure as follows:
> {code}
> ./configure --with-java=/System/Library/Frameworks/JavaVM.framework
> {code}
> As Oracle JDK 1.7 is now the default/only supported JDK for command-line use in current OS X versions, this really ought to work out of the box. Don't know how configure scripts work, so can't supply a patch, sorry.
> Note: I'm having an additional problem which may be related (will post as separate issue).
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (DAEMON-265) OS X 10.8: Cannot build jsvc with
java 7 installed
Posted by "sam marshall (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DAEMON-265?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
sam marshall updated DAEMON-265:
--------------------------------
Description:
I followed the instructions here to build jsvc:
https://tomcat.apache.org/tomcat-7.0-doc/setup.html#Unix_daemon
When I run the configure script, I get this:
{code}
*** Java compilation tools ***
checking for JDK os include directory... Cannot find jni_md.h in /System/Library/Frameworks/JavaVM.framework/Home/
configure: error: You should retry --with-os-type=SUBDIR
{code}
(Update: I think my initial workaround was incorrect, have updated.)
You can make it work by pointing to the current command-line Java home, which can be found by running this command:
{code}
/usr/libexec/java_home
{code}
The result of this command will be something like:
{code}
/Library/Java/JavaVirtualMachines/jdk1.7.0_09.jdk/Contents/Home
{code}
You can therefore run configure as follows:
{code}
./configure --with-java=/Library/Java/JavaVirtualMachines/jdk1.7.0_09.jdk/Contents/Home
{code}
As Oracle JDK 1.7 is now the default/only supported JDK for command-line use in current OS X versions, this really ought to work out of the box. Don't know how configure scripts work, so can't supply a patch, sorry.
Note: I'm having an additional problem which may be related (will post as separate issue).
was:
I followed the instructions here to build jsvc:
https://tomcat.apache.org/tomcat-7.0-doc/setup.html#Unix_daemon
When I run the configure script, I get this:
{code}
*** Java compilation tools ***
checking for JDK os include directory... Cannot find jni_md.h in /System/Library/Frameworks/JavaVM.framework/Home/
configure: error: You should retry --with-os-type=SUBDIR
{code}
(Update: I think my initial workaround was incorrect, have updated.)
You can make it work by pointing to the current command-line Java home, which can be found by running this command:
/usr/libexec/java_home
The result of this command will be something like:
/Library/Java/JavaVirtualMachines/jdk1.7.0_09.jdk/Contents/Home
You can therefore run configure as follows:
{code}
./configure --with-java=/System/Library/Frameworks/JavaVM.framework
{code}
As Oracle JDK 1.7 is now the default/only supported JDK for command-line use in current OS X versions, this really ought to work out of the box. Don't know how configure scripts work, so can't supply a patch, sorry.
Note: I'm having an additional problem which may be related (will post as separate issue).
> OS X 10.8: Cannot build jsvc with java 7 installed
> --------------------------------------------------
>
> Key: DAEMON-265
> URL: https://issues.apache.org/jira/browse/DAEMON-265
> Project: Commons Daemon
> Issue Type: Bug
> Components: Jsvc
> Affects Versions: 1.0.10
> Environment: OS X 10.8.2
> Oracle JDK 1.7.0_09
> Reporter: sam marshall
>
> I followed the instructions here to build jsvc:
> https://tomcat.apache.org/tomcat-7.0-doc/setup.html#Unix_daemon
> When I run the configure script, I get this:
> {code}
> *** Java compilation tools ***
> checking for JDK os include directory... Cannot find jni_md.h in /System/Library/Frameworks/JavaVM.framework/Home/
> configure: error: You should retry --with-os-type=SUBDIR
> {code}
> (Update: I think my initial workaround was incorrect, have updated.)
> You can make it work by pointing to the current command-line Java home, which can be found by running this command:
> {code}
> /usr/libexec/java_home
> {code}
> The result of this command will be something like:
> {code}
> /Library/Java/JavaVirtualMachines/jdk1.7.0_09.jdk/Contents/Home
> {code}
> You can therefore run configure as follows:
> {code}
> ./configure --with-java=/Library/Java/JavaVirtualMachines/jdk1.7.0_09.jdk/Contents/Home
> {code}
> As Oracle JDK 1.7 is now the default/only supported JDK for command-line use in current OS X versions, this really ought to work out of the box. Don't know how configure scripts work, so can't supply a patch, sorry.
> Note: I'm having an additional problem which may be related (will post as separate issue).
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira