lucene-pylucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bill Janssen <>
Subject Re: [VOTE] Release PyLucene 2.9.4-1 and 3.0.3-1
Date Wed, 08 Dec 2010 09:32:40 GMT
Andi Vajda <> wrote:

> Yes, two things made me do this:
>   1. Bill Janssen said on this list that an Apple developer he talked to
>      said that the /Developer tree is the correct one to use.

I asked again, and got this answer.  Looks like I was (wrong? talking
about a pre-release version of Snow Leopard?); Mike says to just use
/System/Library/Frameworks/JavaVM.framework/Headers, and explains why
that doesn't always work, and that they're aware of the problem.

So let's just hardcode that path into the file for "darwin".


Subject: Re: how to locate an installed JDK?
From: Mike Swingler <>
Date: Wed, 8 Dec 2010 07:13:59 PST
Cc: java-dev <>

On Dec 7, 2010, at 7:08 PM, Bill Janssen wrote:

> Now that we have /usr/libexec/java_home, is there a standard way to
> locate a JDK, with tools like "javac" and "jar" and header files like
> "jni.h"?
> The PyLucene project installs a tool called "JCC", which wraps a jar
> file as a Python module, but to build JCC, it has to find a Java JDK
> with header files.  Is there a standard way of doing that yet?

To find a $JAVA_HOME for the purposes of using the command line tools,
please use /usr/libexec/java_home. The man page for "java_home"
enumerates all of it's options.

As for headers, always use /System/Library/Frameworks/JavaVM.framework/Headers.

It may be necessary to install the "Java for Mac OS X 10.6 Update 3
Developer Package" or "Java for Mac OS X 10.5 Update 8 Developer
Package" from <> under the "Java" section, to
ensure the native headers are present in the JavaVM.framework. We are
aware that this has caused some inconvenience for otherwise native
projects that make use of the JNI API, and we are leaning towards just
shipping the headers in the regular customer software update package.

Mike Swingler
Java Engineering
Apple Inc.

View raw message