Please help me to open .exe in my program

Hi all,

I am a newbee to java. I like to invoke notepad in my program. I think the code /* Runtime.execute("notepad.exe","c: emp.txt"); */ will do but I am not sure about which class file to import. I am saving and running all my programs in the bin directory only.

Someone please help

Thank you in advance.


Comments

  • : Hi all,
    :
    : I am a newbee to java. I like to invoke notepad in my program. I think the code /* Runtime.execute("notepad.exe","c: emp.txt"); */ will do but I am not sure about which class file to import. I am saving and running all my programs in the bin directory only.
    :
    : Someone please help
    :
    : Thank you in advance.
    :
    :
    :
    Obviously you need to import tha package containing the Runtime class. You can find out which package that is at http://java.sun.com/j2se/1.5.0/docs/api/index.html.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion