You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Brian Lee Yung Rowe <pu...@muxspace.com> on 2004/06/24 13:46:50 UTC

Compiling Lucene on PPC linux

Hello,

Has anyone had success compiling Lucene 1.3 on PowerPC linux (gentoo ppc-linux 
2.4.20)? I'm using the IBM VM 1.4.1 and Jikes 1.18.

The problem I'm getting is that Ant cannot execute the RMIC task, although 
I've checked the libraries in the IBM JDK (and set the JAVA_HOME environment 
variable) with jar and grep to determine that the classes are there. I've 
also tried using MiniRMI with no avail.

Can anyone point me in the right direction to get the RMIC task to work (or 
should I be bugging the Ant list instead)?

Thanks,
Brian Rowe

-- 
=====
Brian Lee Yung Rowe
division mux space
www.muxspace.com

---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org


Re: Compiling Lucene on PPC linux

Posted by Stefan Bodewig <bo...@apache.org>.
On Fri, 25 Jun 2004, Brian Lee Yung Rowe <pu...@muxspace.com>
wrote:

> Yes, I'm running Ant 1.6.1. I removed miniRMIC from the CLASSPATH
> and added it as a command line option instead to Ant but I get the
> same error.

Strange.

Can you run ant -debug?

> Is there a way to use the RMIC provided by the IBM JDK?

I don't know since I don't have an IBM JDK on my Linux box (only five
different Blackdown/Sun JDKs plus Kaffee, thought that would be enough
8-).

Can you give me a directory listing of JAVA_HOME/lib?

> NB: I know that we aren't supposed to cross post so I am not CC-ing 
> lucene-user at this point.

Good, so Erik doesn't have to forward my response again.

Cheers

        Stefan

-- 
http://stefanbodewig.blogger.de/

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: Compiling Lucene on PPC linux

Posted by Brian Lee Yung Rowe <pu...@muxspace.com>.
Hi Stefan,

Yes, I'm running Ant 1.6.1. I removed miniRMIC from the CLASSPATH and added it 
as a command line option instead to Ant but I get the same error.

Is there a way to use the RMIC provided by the IBM JDK?

Brian

NB: I know that we aren't supposed to cross post so I am not CC-ing 
lucene-user at this point.


On Friday 25 June 2004 06:39 am, Stefan Bodewig wrote:
> > On Jun 24, 2004, at 8:46 AM, Brian Lee Yung Rowe wrote:
> >> Hi Erik,
> >>
> >> With miniRMI, I get the following:
> >>
> >>   build.xml:142: mini.rmi.rmic.AntRMIC can't be found.
> >>
> >> I have the miniRMIC.jar in my CLASSPATH.
>
> Is this Ant 1.6.x?  If so, the problem may be that miniRMIC tries to
> load Ant classes and doesn't find them.  With the jar on CLASSPATH
> miniRMI will be loaded via the system classloader while Ant's own
> classes are loaded in a classloader higher up on the hierarchy.
>
> Try to remove miniRMIC.jar from CLASSPATH and invoke Ant with
> -lib PATH/TO/miniRMIC.jar.
>
> Stefan


-- 
=====
Brian Lee Yung Rowe
division mux space
www.muxspace.com

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: Compiling Lucene on PPC linux

Posted by Brian Lee Yung Rowe <br...@cenozoa.com>.
On Thursday 24 June 2004 05:35 pm, Erik Hatcher wrote:
> I'm copying this over to the Ant user list - let's take it over there
> now.  I presume you're setting build.rmic to mini.rmi.rmic.AntRMIC?
> How are you doing that?

I've set the build.rmic property in ~/lucene.build.properties. I know the 
build script is using the variable since when I comment it out, it looks for 
the SUN rmi compiler.

Brian


> Anyone have advice on using <rmic> on Linux with IBM's VM?
>
> 	Erik
>
> On Jun 24, 2004, at 8:46 AM, Brian Lee Yung Rowe wrote:
> > Hi Erik,
> >
> > With miniRMI, I get the following:
> >
> >   build.xml:142: mini.rmi.rmic.AntRMIC can't be found.
> >
> > I have the miniRMIC.jar in my CLASSPATH. Do I need to specify it
> > somewhere
> > else?
> >
> > If I don't use miniRMI, I get the following error:
> >   build.xml: 142: Cannot use SUN rmic, as it is not available.  A
> > common
> > solution is to set the environment variable JAVA_HOME or CLASSPATH.
> >
> > My JAVA_HOME is set to /opt/ibm-jdk-1.4.1 and the CLASSPATH is
> > definitely set
> > (too long to list here). Additionally, IBM's jre/lib/core.jar contains
> > the
> > sun.rmi.* classes, so I'm not sure why Ant is complaining.
> >
> > Thanks,
> > Brian
> >
> > On Thursday 24 June 2004 04:06 pm, Erik Hatcher wrote:
> >> What is the <rmic> error that you're getting?
> >>
> >> I definitely recommend taking this to the ant-user list, but I know
> >> there have been some IBM VM issues with Lucene in the past and I'm not
> >> sure where they stand now.
> >>
> >> 	Erik
> >
> > --
> > =====
> > Brian Lee Yung Rowe
> > division mux space
> > www.muxspace.com
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: lucene-user-help@jakarta.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: lucene-user-help@jakarta.apache.org

-- 
 =====
Brian Lee Yung Rowe
Cenozoa Corporation
3 East 28th Street, 9th Floor, New York 10016
646 536 3066
www.cenozoa.com

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: Compiling Lucene on PPC linux

Posted by Stefan Bodewig <bo...@apache.org>.
> On Jun 24, 2004, at 8:46 AM, Brian Lee Yung Rowe wrote:
> 
>> Hi Erik,
>>
>> With miniRMI, I get the following:
>>
>>   build.xml:142: mini.rmi.rmic.AntRMIC can't be found.
>>
>> I have the miniRMIC.jar in my CLASSPATH.

Is this Ant 1.6.x?  If so, the problem may be that miniRMIC tries to
load Ant classes and doesn't find them.  With the jar on CLASSPATH
miniRMI will be loaded via the system classloader while Ant's own
classes are loaded in a classloader higher up on the hierarchy.

Try to remove miniRMIC.jar from CLASSPATH and invoke Ant with 
-lib PATH/TO/miniRMIC.jar.

Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: Compiling Lucene on PPC linux

Posted by Erik Hatcher <er...@ehatchersolutions.com>.
I'm copying this over to the Ant user list - let's take it over there 
now.  I presume you're setting build.rmic to mini.rmi.rmic.AntRMIC?  
How are you doing that?

Anyone have advice on using <rmic> on Linux with IBM's VM?

	Erik


On Jun 24, 2004, at 8:46 AM, Brian Lee Yung Rowe wrote:

> Hi Erik,
>
> With miniRMI, I get the following:
>
>   build.xml:142: mini.rmi.rmic.AntRMIC can't be found.
>
> I have the miniRMIC.jar in my CLASSPATH. Do I need to specify it 
> somewhere
> else?
>
> If I don't use miniRMI, I get the following error:
>   build.xml: 142: Cannot use SUN rmic, as it is not available.  A 
> common
> solution is to set the environment variable JAVA_HOME or CLASSPATH.
>
> My JAVA_HOME is set to /opt/ibm-jdk-1.4.1 and the CLASSPATH is 
> definitely set
> (too long to list here). Additionally, IBM's jre/lib/core.jar contains 
> the
> sun.rmi.* classes, so I'm not sure why Ant is complaining.
>
> Thanks,
> Brian
>
>
> On Thursday 24 June 2004 04:06 pm, Erik Hatcher wrote:
>> What is the <rmic> error that you're getting?
>>
>> I definitely recommend taking this to the ant-user list, but I know
>> there have been some IBM VM issues with Lucene in the past and I'm not
>> sure where they stand now.
>>
>> 	Erik
>
> -- 
> =====
> Brian Lee Yung Rowe
> division mux space
> www.muxspace.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: lucene-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: Compiling Lucene on PPC linux

Posted by Erik Hatcher <er...@ehatchersolutions.com>.
I'm copying this over to the Ant user list - let's take it over there 
now.  I presume you're setting build.rmic to mini.rmi.rmic.AntRMIC?  
How are you doing that?

Anyone have advice on using <rmic> on Linux with IBM's VM?

	Erik


On Jun 24, 2004, at 8:46 AM, Brian Lee Yung Rowe wrote:

> Hi Erik,
>
> With miniRMI, I get the following:
>
>   build.xml:142: mini.rmi.rmic.AntRMIC can't be found.
>
> I have the miniRMIC.jar in my CLASSPATH. Do I need to specify it 
> somewhere
> else?
>
> If I don't use miniRMI, I get the following error:
>   build.xml: 142: Cannot use SUN rmic, as it is not available.  A 
> common
> solution is to set the environment variable JAVA_HOME or CLASSPATH.
>
> My JAVA_HOME is set to /opt/ibm-jdk-1.4.1 and the CLASSPATH is 
> definitely set
> (too long to list here). Additionally, IBM's jre/lib/core.jar contains 
> the
> sun.rmi.* classes, so I'm not sure why Ant is complaining.
>
> Thanks,
> Brian
>
>
> On Thursday 24 June 2004 04:06 pm, Erik Hatcher wrote:
>> What is the <rmic> error that you're getting?
>>
>> I definitely recommend taking this to the ant-user list, but I know
>> there have been some IBM VM issues with Lucene in the past and I'm not
>> sure where they stand now.
>>
>> 	Erik
>
> -- 
> =====
> Brian Lee Yung Rowe
> division mux space
> www.muxspace.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: lucene-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org


Re: Compiling Lucene on PPC linux

Posted by Brian Lee Yung Rowe <pu...@muxspace.com>.
Hi Erik,

With miniRMI, I get the following:

  build.xml:142: mini.rmi.rmic.AntRMIC can't be found.

I have the miniRMIC.jar in my CLASSPATH. Do I need to specify it somewhere 
else?

If I don't use miniRMI, I get the following error:
  build.xml: 142: Cannot use SUN rmic, as it is not available.  A common 
solution is to set the environment variable JAVA_HOME or CLASSPATH.

My JAVA_HOME is set to /opt/ibm-jdk-1.4.1 and the CLASSPATH is definitely set 
(too long to list here). Additionally, IBM's jre/lib/core.jar contains the 
sun.rmi.* classes, so I'm not sure why Ant is complaining.

Thanks,
Brian


On Thursday 24 June 2004 04:06 pm, Erik Hatcher wrote:
> What is the <rmic> error that you're getting?
>
> I definitely recommend taking this to the ant-user list, but I know
> there have been some IBM VM issues with Lucene in the past and I'm not
> sure where they stand now.
>
> 	Erik

-- 
=====
Brian Lee Yung Rowe
division mux space
www.muxspace.com

---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org


Re: Compiling Lucene on PPC linux

Posted by Erik Hatcher <er...@ehatchersolutions.com>.
What is the <rmic> error that you're getting?

I definitely recommend taking this to the ant-user list, but I know 
there have been some IBM VM issues with Lucene in the past and I'm not 
sure where they stand now.

	Erik

On Jun 24, 2004, at 7:46 AM, Brian Lee Yung Rowe wrote:

> Hello,
>
> Has anyone had success compiling Lucene 1.3 on PowerPC linux (gentoo 
> ppc-linux
> 2.4.20)? I'm using the IBM VM 1.4.1 and Jikes 1.18.
>
> The problem I'm getting is that Ant cannot execute the RMIC task, 
> although
> I've checked the libraries in the IBM JDK (and set the JAVA_HOME 
> environment
> variable) with jar and grep to determine that the classes are there. 
> I've
> also tried using MiniRMI with no avail.
>
> Can anyone point me in the right direction to get the RMIC task to 
> work (or
> should I be bugging the Ant list instead)?
>
> Thanks,
> Brian Rowe
>
> -- 
> =====
> Brian Lee Yung Rowe
> division mux space
> www.muxspace.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: lucene-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org