[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [GNUnet-developers] java binding libexternal

From: Christian Grothoff
Subject: Re: [GNUnet-developers] java binding libexternal
Date: Fri, 28 Mar 2008 20:03:51 -0600
User-agent: KMail/1.9.7

Read the source code of the "Xtract" file, that's a minimal example for using 
the Java binding (at  
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.



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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]