I m using the .so generated with the tar files you provide in the web...
http://gnunet.org/libextractor/download.php3?xlang=English



Tar Package
Latest version is libextractor-0.5.20.tar.gz. 
Latest Java-binding is libextractor-java-0.5.18.tar.gz.


Btw, you were right, maybe this version is not the better one. Maybe you
can change the tar of the web. I have downloaded the java binding of the
ubuntu distribution and it is running properly..

sorry for the inconveniences and thank you very much,

Miguel


On Tue, 2008-04-01 at 23:03 -0600, Christian Grothoff wrote:

> After thinking about this for a while, I only have one explanation: You are 
> (most likely) using one version of the main "libextractor" library, and a 
> more recent version of some of the plugins.  Not sure how, but that's my best 
> guess.  The "132" is the number LE gives to a particular metadata type, the 
> latest version of LE defines values up to 134.  One version back, the largest 
> number was 131.  Somehow, your main LE library does not know about types 
> 132-134.  Note that this is about the C library, the Java code just asks the 
> C library about the values.
> 
> I'd check if you have multiple versions of "libextractor.so" / 
> libextractor.dll lying around on your system.  Make sure you only have one 
> installed, and that it is the latest one and the same one used by the 
> plugins.  Then, I suspect, this issue will magically disappear.
> 
> My 2 cents
> 
> Christian
> 
> On Monday 31 March 2008, Miguel wrote:
> > using the example Xtract.java (with one song as argument) I get the
> > following error:
> >
> >
> > Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 132
> >     at
> > org.gnunet.libextractor.Extractor.getTypeAsString(Extractor.java:132)
> >     at org.gnunet.libextractor.Extractor
> > $Keyword.toString(Extractor.java:423)
> >     at java.lang.String.valueOf(String.java:2827)
> >     at java.io.PrintStream.println(PrintStream.java:771)
> >     at org.gnunet.libextractor.Xtract.main(Xtract.java:39)
> >
> > Keywords for /home/mcm/ecar_mejorado/extractor/media/adamo.mp3:
> >
> > format: 128 kbps, 44100 hz, 4m45 stereo
> > resource-type: MPEG V1
> > mimetype: audio/mpeg
> > description: Various Artists: Adamo _ Inch Allah (De Pre Historie 1967)
> >
> > Why is it not properly working?
> >
> > On Mon, 2008-03-31 at 07:33 -0600, Christian Grothoff wrote:
> > > I don't think there is one. However, the configure script should work.
> > >
> > > Christian
> > >
> > > On Monday 31 March 2008, Miguel wrote:
> > > > thank you !
> > > > i saw the example there, Anyway, where can i find a precompiled version
> > > > of the libraries I have to use?
> > > >
> > > > On Fri, 2008-03-28 at 20:03 -0600, Christian Grothoff wrote:
> > > > > Read the source code of the "Xtract" file, that's a minimal example
> > > > > for using the Java binding (at
> > > > > https://gnunet.org/svn/Extractor-java/org/gnunet/libextractor/Xtract.
> > > > >java ). Make sure to set your library paths (under UNIX:
> > > > > LD_LIBRARY_PATH environment variable) correctly to find the LE JNI C
> > > > > plugin library.
> > > > >
> > > > > As indicated by the fact that the "Extractor" constructor is marked
> > > > > *private*, you should never call it directly.  You will NOT be able
> > > > > to supply a correct "int" value to the constructor, only the native
> > > > > code can do that. Use the various static methods (not "new") to
> > > > > create an Extractor instance.
> > > > >
> > > > > Best,
> > > > >
> > > > > Christian
> > > > >
> > > > > On Friday 28 March 2008, Miguel wrote:
> > > > > > I have tried to make a really small program to find the meta-data
> > > > > > of different files but I dont know where can I get the manual for
> > > > > > the java binding. Does anybody know where can I get it?
> > > > > >
> > > > > > I m testing it with a really dummy program:
> > > > > >
> > > > > > public static void main(String [ ] args)
> > > > > > {
> > > > > > Extractor ext = new Extractor(int);
> > > > > > ArrayList al =
> > > > > > ext.extract("/home/mcm/ecar_mejorado/extractor/media/adamo.mp3");
> > > > > > System.out.println(" adamo.mp3: " + al.toString());
> > > > > >
> > > > > >
> > > > > > }
> > > > > >
> > > > > > where int is an integer number linked to plugins but I dont
> > > > > > understand how does it work ...
> > > > > > I m working on an ubutu gusty, and I have installed the following
> > > > > > packages:
> > > > > >
> > > > > > ii  libextractor-java0                         0.5.6-3
> > > > > > Java bindings for GNU libextractor
> > > > > > ii  libextractor-plugins                       0.5.18-3
> > > > > > extracts meta-data from files of arbitrary type (plugi
> > > > > > ii  libextractor1c2a                            0.5.18-3
> > > > > > extracts meta-data from files of arbitrary type (libra
> > > > > >
> > > > > >
> > > > > > any Ideas?
> > > > > >
> > > > > > thank you in advance,
> > > > > >
> > > > > > Mike
> 
> 
> 
_______________________________________________
GNUnet-developers mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/gnunet-developers

Reply via email to