Ted,

That is indeed a neat trick -- thanks for the tip.  Unfortunately, it doesn't 
help with this problem.  I had JAVA_HOME set correctly, but jsvc doesn't know 
how to find the JVM shared lib within it in the case where JAVA_HOME points to 
Oracle's Java rather than Apple's.

Cheers,

Ian


On Feb 28, 2013, at 2:42 PM, Ted Dunning <ted.dunn...@gmail.com> wrote:
> This helps me when I need 1.7:
> 
>      $ export JAVA_HOME=$(/usr/libexec/java_home)
> 
> This causes Oracle JDK to work from the command line for me.
> 
> On Thu, Feb 28, 2013 at 11:08 AM, Ian Emmons <iemm...@bbn.com> wrote:
>> Mladen,
>> 
>> On Feb 28, 2013, at 1:47 AM, Mladen Turk <mt...@apache.org> wrote:
>>> On 02/26/2013 08:47 PM, Ian Emmons wrote:
>>>> I am having trouble running commons daemon 1.0.13 on MacOS 10.8.2 with
>>>> Java 7:
>>>> 
>>>> However, with Java 1.7 this folder does not exist.  Instead, jsvc
>>>> should be trying to load this shared library:
>>>> 
>>>>   $JAVA_HOME/jre/lib/server/libjvm.dylib
>>>> 
>>>> If I change JAVA_HOME to point to Apple's Java 1.6, then jsvc
>>>> successfully finds the JVM shared library.  (See the attached
>>>> console-1.6.txt.)
>>> 
>>> Yes, Apple made a real mess with 1.7 layout. There are actually few
>>> valid layouts for 1.7 I have seen (not counting OpenJDK), so seems this is
>>> another one.  Please open Commons Daemon JIRA issue and I'll add that to
>>> the search path.
>> 
>> Thanks, I've entered issue 281 [1].  BTW, I believe that the 1.7 layout is
>> Oracle's doing, not Apple's, and that it generally looks more similar to
>> the layout on Windows than for the older Apple Java 1.6 (which Apple did
>> indeed make a real mess of).
>> 
>> -Ian
>> 
>> [1] https://issues.apache.org/jira/browse/DAEMON-281

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@commons.apache.org
For additional commands, e-mail: user-h...@commons.apache.org

Reply via email to