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 :
Mes fichiers SomethingA.idl et XSomethingA.idl sont :
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"
- SomethingA.idl :
-XSomethingA.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
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!!!!
Partager