You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "philippe le berre (JIRA)" <ji...@apache.org> on 2014/11/01 10:58:33 UTC

[jira] [Commented] (DAEMON-265) OS X 10.8: Cannot build jsvc with java 7 installed

    [ https://issues.apache.org/jira/browse/DAEMON-265?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14193046#comment-14193046 ] 

philippe le berre commented on DAEMON-265:
------------------------------------------

Hi,

I hit one further issue with JDK 7 on 10.9 and 10.10, the missing Libraries directory and lib server.dylib. There seems to be no more lib server.dylib but a server/ subdirectory with a libjvm.dylib in it.

To fix this I had to :

cd /Library/Java/JavaVirtualMachines/jdk1.7.0_71.jdk/Contents
sudo ln -s Home/jre/lib Libraries 
cd Libraries
sudo ln -s server/libjvm.dylib libserver.dylib

and it works :-)

--- debug output
Attempting to locate Java Home in /Library/Java/JavaVirtualMachines/jdk1.7.0_71.jdk/Contents/Home
Attempting to locate VM configuration file /Library/Java/JavaVirtualMachines/jdk1.7.0_71.jdk/Contents/Home/jre/lib/jvm.cfg
Found VM configuration file at /Library/Java/JavaVirtualMachines/jdk1.7.0_71.jdk/Contents/Home/jre/lib/jvm.cfg
Found VM server definition in configuration
Checking library /Library/Java/JavaVirtualMachines/jdk1.7.0_71.jdk/Contents/Home/../Libraries/libserver.dylib
Found VM client definition in configuration
Checking library /Library/Java/JavaVirtualMachines/jdk1.7.0_71.jdk/Contents/Home/../Libraries/libclient.dylib
Cannot locate library for VM client (skipping)
---

> 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 was sent by Atlassian JIRA
(v6.3.4#6332)