Skip to Main Content

Oracle Forms

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

open bat file on client machine using webutil

Fabrizio Delli PriscoliSep 2 2008 — edited Sep 4 2008
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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 2 2008
Added on Sep 2 2008
19 comments
1,873 views