lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From PA <petite.abei...@gmail.com>
Subject Re: Find version of Lucene library
Date Wed, 09 Mar 2005 10:37:56 GMT

On Mar 09, 2005, at 11:30, Andrzej Bialecki wrote:

> I'm not sure... I just tried to do  
> Package.getPackage("org.apache.lucene") and got null, even though the  
> manifest is present in the JAR.

Packages are only defined when their underlying class has been already  
loaded...

http://alt.textdrive.com/assets/public/docs/ 
java.lang.Package.cls.html#getPackage.String

Why don't you do it the other way around, e.g. pick a Lucene class and  
ask it for its package. That works for me.

Cheers

--
PA, Onnay Equitursay
http://alt.textdrive.com/


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


Mime
View raw message