Couple of things :
a) Maybe you are using an older version of the jdk.
b) If thats not the case it would be better for you as well as the list if
you posted the code alongwith the errors. So that people on the list donot
have to spend time in comprehending what code you have written.
Just a suggestion :-).
Have a nice day.
With regards,
Sachin S. Khanna
http://www.emailanorder.com
----- Original Message -----
From: CHAKCHOUK, Anis <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, April 18, 2001 10:04 PM
Subject: Re: Running dos native commands from java application...
> hi,
> help please:
> Java Server Page Translation Error
> Error during compilation :
> C:\JavaWebServer2.0\tmpdir\default\pagecompile\jsp\_list.java:99: Class
> pagecompile.jsp.Iterator not found in type declaration.
> Iterator i = v.iterator();
> ^
> C:\JavaWebServer2.0\tmpdir\default\pagecompile\jsp\_list.java:99: Method
> iterator() not found in class java.util.Vector.
> Iterator i = v.iterator();
> ^
> 2 errors
>
>
> -----Message d'origine-----
> De : Anis Kasmani [mailto:[EMAIL PROTECTED]]
> Envoyé : lundi 9 avril 2001 21:01
> À : [EMAIL PROTECTED]
> Objet : Re: Running dos native commands from java application...
>
>
> Commands such as dir, copy etc would need to be executed as
>
> rt.exec("cmd /c dir");
>
> do let me know if it worked for u.
>
> Anis
>
>
>
> ----- Original Message -----
> From: "Padmakar Neelapareddy" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Sunday, April 08, 2001 11:28 PM
> Subject: Running dos native commands from java application...
>
>
> > Dear All,
> >
> > I need to execute DOS native commnads such as "dir","copy","copy x.txt >
> > prn".......etc
> > from inside a java application.
> >
> > I tried them using following code
> >
> > Runtime rt = Runtime.getRuntime();
> > rt.exec("dir");
> > rt.exec("copy x.txt > prn");
> >
> > But I got following exception
> >
> > java.io.IOException: CreateProcess: dir error=2
> > at java.lang.Win32Process.create(Native Method)
> > at java.lang.Win32Process.<init>(Unknown Source)
> > at java.lang.Runtime.execInternal(Native Method)
> >
> > Can any one help me regarding this please ? I want it
> > urgently...................!
> >
> > Waiting for your valuable replies........
> >
> > Rgds
> > padmakar neelapareddy
> >
> >
> > The information in this message is confidential and may be legally
> privileged. It is intended solely for the addressee. Access to this
message
> by anyone else is unauthorized. If you are not the intended recipient, any
> disclosure, copying, or distribution of the message, or any action or
> omission taken by you in reliance on it, is prohibited and may be
unlawful.
> Please immediately contact the sender if you have received this message in
> error.
> >
> >
>
===========================================================================
> > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> > For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
> DIGEST".
> > Some relevant FAQs on JSP/Servlets can be found at:
> >
> > http://java.sun.com/products/jsp/faq.html
> > http://www.esperanto.org.nz/jsp/jspfaq.html
> > http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> > http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
> DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets