run file.bat from java

  • Follow


Hello to everybody,
I try to run my batch file in this way :
     Runtime.getRuntime().exec("http://virgilio/"+parent.areaAdams +
"/run_adams.bat");

But compare an errore like this :
      com.ms.security.SecurityExceptionEx[hsn_pkg/hsnFrame.runSolver]
	at com/ms/security/PolicyEngine.deepCheck
	at com/ms/security/PolicyEngine.checkPermission
	at com/ms/security/StandardSecurityManager.chk
	at com/ms/security/StandardSecurityManager.checkExec
	at java/lang/Runtime.exec
	at java/lang/Runtime.exec
	at hsn_pkg/hsnFrame.runSolver

Somebody knows how i can do it ???

Thanks for every answer

Bye
0
Reply aleparodix 11/2/2004 3:11:19 PM

Hi Alex,

Can you please tell, in which kind of Java application you are executing the
provided code? Is it Java desktop application / Java applet or some Java web
application?

Regards,
Yasir

"Alex" <aleparodix@yahoo.it> wrote in message
news:ecd3af2e.0411020711.5df58b81@posting.google.com...
> Hello to everybody,
> I try to run my batch file in this way :
>      Runtime.getRuntime().exec("http://virgilio/"+parent.areaAdams +
> "/run_adams.bat");
>
> But compare an errore like this :
>       com.ms.security.SecurityExceptionEx[hsn_pkg/hsnFrame.runSolver]
> at com/ms/security/PolicyEngine.deepCheck
> at com/ms/security/PolicyEngine.checkPermission
> at com/ms/security/StandardSecurityManager.chk
> at com/ms/security/StandardSecurityManager.checkExec
> at java/lang/Runtime.exec
> at java/lang/Runtime.exec
> at hsn_pkg/hsnFrame.runSolver
>
> Somebody knows how i can do it ???
>
> Thanks for every answer
>
> Bye


0
Reply Yasir 11/3/2004 5:14:05 AM


Hi Yasir,
i'm executing in Java applet.
Before there was different Perl script for run batch file, but I must
now remove it.....

thank you 

"Yasir Khan" <yasir.khan@REMOVE_THISascertia.com> wrote in message news:<2ur7q7F2d6l6qU1@uni-berlin.de>...
> Hi Alex,
> 
> Can you please tell, in which kind of Java application you are executing the
> provided code? Is it Java desktop application / Java applet or some Java web
> application?
> 
> Regards,
> Yasir
> 
> "Alex" <aleparodix@yahoo.it> wrote in message
> news:ecd3af2e.0411020711.5df58b81@posting.google.com...
> > Hello to everybody,
> > I try to run my batch file in this way :
> >      Runtime.getRuntime().exec("http://virgilio/"+parent.areaAdams +
> > "/run_adams.bat");
> >
> > But compare an errore like this :
> >       com.ms.security.SecurityExceptionEx[hsn_pkg/hsnFrame.runSolver]
> > at com/ms/security/PolicyEngine.deepCheck
> > at com/ms/security/PolicyEngine.checkPermission
> > at com/ms/security/StandardSecurityManager.chk
> > at com/ms/security/StandardSecurityManager.checkExec
> > at java/lang/Runtime.exec
> > at java/lang/Runtime.exec
> > at hsn_pkg/hsnFrame.runSolver
> >
> > Somebody knows how i can do it ???
> >
> > Thanks for every answer
> >
> > Bye
0
Reply aleparodix 11/3/2004 3:40:27 PM

2 Replies
259 Views

(page loaded in 0.079 seconds)

Similiar Articles:













7/23/2012 11:52:24 AM


Reply: