Rechercher : dans
Par :

JAVA, Ficher de type ".so" sous Netbeans

Dernière réponse le 5 nov 2009 à 14:22:23 amaradelll, le 5 nov 2009 à 12:12:32 
 Signaler ce message aux modérateurs

Bonjour,

Je veux utiliser dans mon projet sous Netbeans un fichier avec l'extension ".so" (exemple : libJava.so).

Mon petit projet nécessite l'utilisation de ce fichier et j'ai pas su comment configurer ça dans le Netbeans

Merci

Configuration: Windows Vista
Firefox 3.5

1

 Pilow, le 5 nov 2009 à 14:22:23

Bonjour

Si j'ai de bon souvenir, les fichiers .so sont des librairies en C, donc tu peux normalement inclure ce fichier dans ton code java grâce à

System.loadLibrary


EDIT :
public static void loadLibrary(String libname)

    Loads the system library specified by the libname argument. The manner in which a library name is mapped to the actual system library is system dependent.

    The call System.loadLibrary(name) is effectively equivalent to the call

         Runtime.getRuntime().loadLibrary(name)
         

    Parameters:
        libname - the name of the library. 

« Informatique : Alliance d'une science inexacte et d'une ac­tivité humaine faillible.»
« Si le déboguage est l’art d’enlever les bogues, alors la p­rogrammation doit être l’art de les créer.»

Répondre à Pilow