Re: finding Java on Linux

2009-10-15 Thread Andi Vajda
On Thu, 15 Oct 2009, Bill Janssen wrote: Andi Vajda wrote: I was making suggestions in the context of simplifying the common case: PyLucene users don't care (they're Python users first) what Java version they use or have and just want it to work (tm). They're happy to just have one version o

Re: finding Java on Linux

2009-10-15 Thread Bill Janssen
Andi Vajda wrote: > I was making suggestions in the context of simplifying the common > case: PyLucene users don't care (they're Python users first) what Java > version they use or have and just want it to work (tm). They're happy > to just have one version of Java installed and put it on their P

Re: finding Java on Linux

2009-10-15 Thread Andi Vajda
On Oct 15, 2009, at 9:40, Bill Janssen wrote: Andi Vajda wrote: Emit an error message that says "sorry, gcj is not supported, please use OpenJDK or Sun JDK" and abort. Right. That's the problem, as I see it. If you have Sun Java installed, it's not necessarily first on your path. But y

Re: finding Java on Linux

2009-10-15 Thread Bill Janssen
Andi Vajda wrote: > Emit an error message that says "sorry, gcj is not supported, please > use OpenJDK or Sun JDK" and abort. Right. That's the problem, as I see it. If you have Sun Java installed, it's not necessarily first on your path. But you want to find it, even if it's masked by gcj.

Re: finding Java on Linux

2009-10-14 Thread Andi Vajda
On Wed, 14 Oct 2009, Bill Janssen wrote: Andi Vajda wrote: On Wed, 14 Oct 2009, Bill Janssen wrote: Andi Vajda wrote: The same approach could be used for figuring out the Java stuff. Have a small class running in Java tell us. You would think, wouldn't you? But then you'll often end

Re: finding Java on Linux

2009-10-14 Thread Bill Janssen
Andi Vajda wrote: > On Wed, 14 Oct 2009, Bill Janssen wrote: > > > Andi Vajda wrote: > > > >> The same approach could be used for figuring out the Java stuff. Have > >> a small class running in Java tell us. > > > > You would think, wouldn't you? But then you'll often end up with gcj. > > And

Re: finding Java on Linux

2009-10-14 Thread Andi Vajda
On Wed, 14 Oct 2009, Bill Janssen wrote: Andi Vajda wrote: The same approach could be used for figuring out the Java stuff. Have a small class running in Java tell us. You would think, wouldn't you? But then you'll often end up with gcj. And it would tell you by looking at System.getPro