i've experimented that just loading com_xxx_wrapper.dll 
in a simple java app 
with
Runtime.getRuntime().load("c:/blabla/com_xxx_wrapper.dll");
gives the same 
Can't find dependent libraries. Of course in blabla 
i've all the dll 
com_xxx_wrapper.dll depends on.
I don't know how to trace what is happening 
inside load.

P.S. 
xxx.dll is used in others c++ projects and does not show 
any problems.

>----Messaggio originale----
>Da: [email protected]
>Data: 
16/12/2008 16.13
>A: "[email protected]"<[email protected]>
>Cc: <qt-jambi-
[email protected]>
>Ogg: Re: [Qt-jambi-interest] application deployement
>

>[email protected] wrote:
>> Hi All,
>> i've a dll say xxx.dll which is wrapped 
by generator produced code 
>> located in com_xxx_wrapper.dll (which depends on 
xxx.dll) . 
>> A qtjambi 
>> application makes use native code in xxx.dll. 
>> 
I want to deploy in a single jar 
>> file my application so i used the 
"deployment spec" way 
>> taking as reference 
>> the way generator-example is 
built.
>> When i run java -jar myapp.jar all the bin 
>> directory (containing 
xxx.dll, com_xxx_wrapper.dll, qtjambi.dll and all qt lib 
>> i use) are copied 

>> in the temporary dir but when com_xxx_wrapper.dll is loaded  
>> 
NativeLibrayManager.loadNativeLibrary  tells: Can't find dependent libraries.

>> 
>> After some investigation i noticed that if put in the system path xxx.
dll , 
>> everything works. So it seems that when com_xx_wrapper.dll is loaded 

>> xxx.dll 
>> is not on the correct path (absolutely xxx.dll and other dlls 
are on the temp 
>> dir) . 
>> How can i have xxx.dll loaded in the temp 
directory too ?
>
>There is no reason why this shouldn't work, so I would have 
to see your 
>.jar and deployent-spec to know why it fails.
>
>best regards,

>Gunnar
>


_______________________________________________
Qt-jambi-interest mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt-jambi-interest

Reply via email to