|
|
run file.bat from java
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: run file.bat from java - comp.lang.java.securityHello to everybody, I try to run my batch file in this way : Runtime.getRuntime().exec("http://virgilio/"+parent.areaAdams + "/run_adams.bat"); ... JButton and Execute Windows Batch File - comp.lang.java.help ...how to execute a .bat from Javascript? - comp.text.pdf Hi, does someone know a way calling a Windows-.bat-File ... comp.lang.java.security Hi, I want to run a java using ... JButton and Execute Windows Batch File - comp.lang.java.gui ...how to execute a .bat from Javascript? - comp.text.pdf Hi, does someone know a way calling a Windows-.bat-File ... comp.lang.java.security Hi, I want to run a java using ... how to execute a .bat from Javascript? - comp.text.pdfrun file.bat from java - comp.lang.java.security Hi, I want to run a java using .bat file. I require some .jar files to be included in classpath as well. How to execute Jar file using Batch file. - comp.lang.java ...java - batch file command to run jar file - Stack Overflow I am created jar file.The jar file is an executable one.But how can i run the jar file from the out side ... How to Hide console window(During execution of batch file) - comp ...I am running a batch file abc.bat through my java class using Runtime Class which will start my application. While it is executing batch file it start... Java Runtime.exec() and sudo. - comp.lang.java.programmer ...run file.bat from java - comp.lang.java.security Hello to everybody, I try to run my batch file in this way : Runtime.getRuntime().exec("http://virgilio/"+parent.areaAdams ... Use Eclipse to run Java web start application - comp.lang.java ...run file.bat from java - comp.lang.java.security Use Eclipse to run Java web start application - comp.lang.java ... run file.bat from java - comp.lang.java.security... or ... Unable to run a java aplication as service or scheduled task ...... task, but it doen't work, because I can't run the> JVM.The easiest i have found to do this is just create a .bat file that calls the java program you want to run.Then go ... java.io.IOException: Keystore was tampered with, or password was ...My (client) private key I tried to create like this: "C:\Program Files\Java ... run file.bat from java 2 97 aleparodix How do I run a batch file from my Java Application? - Stack OverflowIn my Java application I want to run a batch file that calls "scons -Q implicit-deps-changed build\file_load_type export\file_load_type" It seems that I can't even ... Execute .bat file from java - Java - Bytes - Tech Commmunity ...Thanks for replying. The program was supposed to call a batch file that does some basic stuff (just copy's some files, but that's not the important thing running the ... 7/23/2012 11:52:24 AM
|
|
|
|
|
|
|
|
|