IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Java Discussion :

créer un type java à partir de fichiers idl


Sujet :

Java

  1. #1
    Futur Membre du Club
    Profil pro
    Inscrit en
    Avril 2009
    Messages
    8
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Avril 2009
    Messages : 8
    Points : 8
    Points
    8
    Par défaut créer un type java à partir de fichiers idl
    Bonjour,

    J'aimerais obtenir un type java à partir de fichiers .idl mais au moment d'appliquer javamaker je rencontre l'erreur :
    ' /usr/lib/openoffice/basis3.0/sdk/bin/javamaker.bin : init registries failed, check your registry files. '

    Voici mon code example.sh :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
     
    export OOoSDK_Home=/usr/lib/openoffice/basis3.0/sdk
    export OOoSDK_BIN=$OOoSDK_Home/bin
    export Workbench=/home/perrin/tmp/TestWorkbench
    export Component=SomethingA
     
    $OOoSDK_BIN/idlc  -C -O $Workbench/$Component/build/urd/org/openoffice -I $OOoSDK_Home/idl -I $Workbench/$Component/idl $Workbench/$Component/idl/org/openoffice/example/X$Component.idl
     
    $OOoSDK_BIN/idlc  -C -O $Workbench/$Component/build/urd/org/openoffice -I $OOoSDK_Home/idl -I $Workbench/$Component/idl $Workbench/$Component/idl/org/openoffice/example/$Component.idl
     
    $OOoSDK_BIN/regmerge $Workbench/$Component/rdb/thumbs.rdb /UCR $Workbench/$Component/build/urd/org/openoffice/$Component.urd
    $OOoSDK_BIN/regmerge $Workbench/$Component/rdb/thumbs.rdb /UCR $Workbench/$Component/build/urd/org/openoffice/X$Component.urd 
     
    $OOoSDK_BIN/regview $Workbench/$Component/rdb/thumbs.rdb
     
    $OOoSDK_BIN/javamaker -Torg.openoffice.example.XSomethingA -Torg.openoffice.example.SomethingA  -BUCR -O"$Workbench/$Component/build/urd/org/openoffice" -nD -X"opt/openoffice.org/ure/share/misc/types.rdb" -X"opt/openoffice.org/basis3.0/program/offapi.rdb" "$Workbench/$Component/rdb/thumbs.rdb"
    Mes fichiers SomethingA.idl et XSomethingA.idl sont :

    - SomethingA.idl :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
     
    #ifndef INCLUDED_ORG_OPENOFFICE_EXAMPLE_SOMETHINGA_IDL
    #define INCLUDED_ORG_OPENOFFICE_EXAMPLE_SOMETHINGA_IDL
     
     
    #include <XSomethingA.idl>
     
    module org { module openoffice { module example { 
        service SomethingA: XSomethingA;
    }; }; };   
     
    #endif
    -XSomethingA.idl :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
     
    #ifndef INCLUDED_ORG_OPENOFFICE_EXAMPLE_XSOMETHINGA_IDL
    #define INCLUDED_ORG_OPENOFFICE_EXAMPLE_XSOMETHINGA_IDL
     
    #include <com/sun/star/uno/XInterface.idl> 
     
    module org { module openoffice { module example { 
        interface XSomethingA { 
            string methodOne([in]string value);
        }; 
    }; }; };  
     
    #endif

    Merci d'avance!!!!

  2. #2
    Futur Membre du Club
    Profil pro
    Inscrit en
    Avril 2009
    Messages
    8
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Avril 2009
    Messages : 8
    Points : 8
    Points
    8
    Par défaut reponse finale
    Salut,

    C'est bon ,mon fichier marche, je ne sais pas trop pourquoi. Donc voici mes bouts de code si ca peut vous etre utile:

    XSomehtingA.idl
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
     
    #ifndef __com_sun_star_test_xsomethinga_idl__
    #define __com_sun_star_test_xsomethinga_idl__
     
    #include <com/sun/star/uno/XInterface.idl> 
     
    module com { module sun { module star { module test { 
        interface XSomethingA { 
            string methodOne([in]string value);
        }; 
    }; }; };  }; 
     
    #endif
    SomethingA.idl
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
     
    #ifndef __com_sun_star_test_somethinga_idl__
    #define __com_sun_star_test_somethinga_idl__
     
    #include <com/sun/star/test/XSomethingA.idl>
     
    module com { module sun { module star { module test { 
        service SomethingA: com::sun::star::test::XSomethingA {};
    }; }; }; };   
     
    #endif
    mon fichier shell
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
     
    export OOoSDK_Home=/usr/lib/openoffice/basis3.0/sdk
    export OOoSDK_BIN=$OOoSDK_Home/bin
    export Workbench=/home/perrin/tmp/TestWorkbench
    export Component=SomethingA
     
    $OOoSDK_BIN/idlc  -w -O $Workbench/$Component/build/urd/com/sun/star/test -I $OOoSDK_Home/idl -I $Workbench/$Component/idl $Workbench/$Component/idl/com/sun/star/test/X$Component.idl
     
    $OOoSDK_BIN/idlc  -w -O $Workbench/$Component/build/urd/com/sun/star/test -I $OOoSDK_Home/idl -I $Workbench/$Component/idl $Workbench/$Component/idl/com/sun/star/test/$Component.idl
     
    $OOoSDK_BIN/regmerge types.rdb /UCR $Workbench/$Component/build/urd/com/sun/star/test/$Component.urd
    $OOoSDK_BIN/regmerge types.rdb /UCR $Workbench/$Component/build/urd/com/sun/star/test/X$Component.urd
     
    $OOoSDK_BIN/regview types.rdb
     
    $OOoSDK_BIN/javamaker -Tcom.* -nD -Gc -BUCR -O $Workbench/$Component/build $Workbench/$Component/types.rdb
    ++

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. Génération code Java depuis des fichiers IDL
    Par Lolitaaa dans le forum CORBA
    Réponses: 1
    Dernier message: 17/11/2009, 10h52
  2. Réponses: 14
    Dernier message: 30/05/2008, 17h04
  3. récuperer le type mime à partir du fichier
    Par isma92 dans le forum Langage
    Réponses: 3
    Dernier message: 09/02/2007, 11h28
  4. Réponses: 2
    Dernier message: 30/06/2006, 13h25
  5. Réponses: 3
    Dernier message: 02/10/2005, 12h30

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo