JAVA, Ficher de type ".so" sous Netbeans

Résolu
amaradelll Messages postés 102 Statut Membre -  
Pilow Messages postés 410 Statut Membre -
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 réponse

  1. Pilow Messages postés 410 Statut Membre 71
     
    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. 

    0