open bat file on client machine using webutil
Hi all.
I'm on devsuite 10g.
I want to run a bat file on client machine using client_host function of webutil.
I have tried first to execute the bat file with mouse double-click in order to check if it is ok, and it works.
Now I want to execute this file from my form using webutil.
Here is my code:
--> with this code I select a file from client machine
Declare
LC$Fichier Varchar2(1000):=null ;
PC$Filtre Varchar2(2000) := '|All files|*.*|' ;
Begin
LC$Fichier := WEBUTIL_FILE.FILE_OPEN_DIALOG
(
null,
'',
PC$Filtre,
'Seleziona un file da caricare'
) ;
If LC$Fichier is not null Then
:output.apri_file := LC$Fichier ;
End if ;
End ;
--> with this code I execute the file that I have opened
declare
cmd varchar2(30000) := null;
BEGIN
Cmd := 'cmd /c start "" "' || :output.apri_file || '"' ;
CLIENT_HOST(cmd);
END;
When I execute my form I have this error:
Exception in thread "main" java.lang.NoClassDefFoundError: ....folder of file opened.
Can anyone help me to solve this problem??
Thanks in advance,
Fabrizio