Re: Find version of Lucene library

2005-03-10 Thread Bernhard Messer
+1 Bernhard Doug Cutting wrote: Andrzej Bialecki wrote: Hmmm... would not java.lang.Package various methods do the job? 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. I looked into this. The packag

Re: Find version of Lucene library

2005-03-09 Thread Erik Hatcher
+1 Erik On Mar 9, 2005, at 1:20 PM, Doug Cutting wrote: Andrzej Bialecki wrote: Hmmm... would not java.lang.Package various methods do the job? 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. I looked

Re: Find version of Lucene library

2005-03-09 Thread Doug Cutting
Andrzej Bialecki wrote: Hmmm... would not java.lang.Package various methods do the job? 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. I looked into this. The package name in the manifest is "org/apache/l

Re: Find version of Lucene library

2005-03-09 Thread Andrzej Bialecki
PA wrote: 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.t

Re: Find version of Lucene library

2005-03-09 Thread PA
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.co

Re: Find version of Lucene library

2005-03-09 Thread Andrzej Bialecki
PA wrote: On Mar 09, 2005, at 09:49, Andrzej Bialecki wrote: Besides, it doesn't work with WebStart, because the classpath is not accessible. Hmmm... would not java.lang.Package various methods do the job? I'm not sure... I just tried to do Package.getPackage("org.apache.lucene") and got null, e

Re: Find version of Lucene library

2005-03-09 Thread PA
On Mar 09, 2005, at 09:49, Andrzej Bialecki wrote: Besides, it doesn't work with WebStart, because the classpath is not accessible. Hmmm... would not java.lang.Package various methods do the job? Cheers -- PA, Onnay Equitursay http://alt.textdrive.com/ -

Re: Find version of Lucene library

2005-03-09 Thread Dawid Weiss
Can you do a Lucene.class.getResource("/META-INF/ and read the info from there manually? This should return JAR-relative URL and thus should work with Java WebStart. D. Andrzej Bialecki wrote: Bill Janssen wrote: The JDK comes with some classes that will let you get to that elegantly. You m

Re: Find version of Lucene library

2005-03-09 Thread Andrzej Bialecki
Bill Janssen wrote: The JDK comes with some classes that will let you get to that elegantly. You mean clumsily :-). Besides, it doesn't work with WebStart, because the classpath is not accessible. -- Best regards, Andrzej Bialecki ___. ___ ___ ___ _ _ __ [__ ||

Re: Find version of Lucene library

2005-03-08 Thread Bill Janssen
> The JDK comes with some classes that will let you get to > that elegantly. You mean clumsily :-). Bill - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Find version of Lucene library

2005-03-08 Thread Otis Gospodnetic
The version information should be included in the Manifest file inside the Jar. The JDK comes with some classes that will let you get to that elegantly. Otis --- Paul Mellor <[EMAIL PROTECTED]> wrote: > Hi guys, > > Just a quick query - is there any way that I can determine at runtime > the >