how to open notepad using java

how to open notepad using java

Hi,

how to open notepad using java?

I want to open windows notepad from java program.

Thanks

View Answers

August 13, 2018 at 5:13 AM

Hi,

Use following code:

import java.util.*;
import java.io.*;

class Notepad {
  public static void main(String[] args) {
    Runtime rs = Runtime.getRuntime();

    try {
      rs.exec("notepad");
    }
    catch (IOException e) {
      System.out.println(e);
    }   
  }
}

Thanks

Ads









Related Tutorials/Questions & Answers:
how to open notepad using java
how to open notepad using java  Hi, how to open notepad using java? I want to open windows notepad from java program. Thanks   Hi, Use following code: import java.util.*; import java.io.*; class Notepad { public
how to create notepad in java
how to create notepad in java  how to create notepad in java
Advertisements
How to open a file in java using JFileChooser
How to open a file in java using JFileChooser  How to open a file in java using JFileChooser
If I open .class file with notepad what is displayed?
If I open .class file with notepad what is displayed?   What is displayed when we open java .class files with notepad
How to create Notepad in Swing
How to create Notepad in Swing Program Description:- In this Example we have... or the string is null or empty. Example package NotePad; import java.awt.... javax.swing.*; public class Notepad extends JFrame { private static
notepad
notepad  i want java code for notepad
How to Open JSP?
How to Open JSP?       In this section you learn How to Open JSP in text editor. The JSP... is simple text file you can simply open it in notepad. On Linux system you can use any
Create your own Notepad in Java
Create your own Notepad in Java      ... programs. Now its turn to create notepad by own with the help of java language... full fleshed notepad application. So just go through the example and see how
how to open java
how to open Java  how to open java file simple Java Example
how to open a web page using proxy in java and handling button event in that web page..?
how to open a web page using proxy in java and handling button event in that web page..?  Sir, what i need is a code which uses proxy address... platform but prefer to be in java. actually i tried but unable to get it..plzz help
Opening Notepad
Opening Notepad  Sir/madam I want to open notepad from java... this. With Regards Vaishnavi Vishwanath   To open the notepad, just go through...}; Runtime.getRuntime().exec(commands); }   Java Create
How to run a Java program in CMD
discussed how to write and run Java program in CMD. Tips to run Java program... a notepad or any other editor and write a small program in Java as given below...! How to Program in Java What is Programming
create, edit ,open simple documents using java - Swing AWT
create, edit ,open simple documents using java   In my program I... in text area? Then how to transfer text in that document back to text area... want to use Java Swing or JSP? Do you want to create word document file
ModuleNotFoundError: No module named 'notepad'
'notepad' How to remove the ModuleNotFoundError: No module named 'notepad...ModuleNotFoundError: No module named 'notepad'  Hi, My Python... to install padas library. You can install notepad python with following command
How to design a form using java?
How to design a form using java?  Please help in designing of form using java for my project
How to implement FTP using java
How to implement FTP using java  Hi, I am a B.tech student and I want to implement FTP using Java to transfer files and exchange files between FTP client and FTP server. Could anyone help me for How to implement FTP using java
how to get harddisk info using S.M.A.R.T using java
how to get harddisk info using S.M.A.R.T using java   how to get harddisk info using S.M.A.R.T using java
how to create users in LDAP using java?
how to create users in LDAP using java?  how to create users in LDAP using java
how to extract css properties using java?
how to extract css properties using java?  how to extract css properties using java
How to merge two word document using java
How to merge two word document using java   how to merge two word document using java
How to transfer a file in java using SSH & Telnet
How to transfer a file in java using SSH & Telnet  How to transfer a file in java using SSH & Telnet
How to merge two word document using java
How to merge two word document using java   how to merge two word document using java
how to create an excel file using java
how to create an excel file using java  how to create an excel file using java
how to create exce sheet using java
how to create exce sheet using java  how to create excel sheet using java
How to disable task manager using java
How to disable task manager using java  How to disable task manager using java
how to create a header in jtable using java swing
how to create a header in jtable using java swing  how to create a header in jtable using java swing   d
How to send and recieve email by using java mailserver
How to send and recieve email by using java mailserver  How to send and receive email by using java mail server?   Hi Friend, Please visit the following link: Java Mail Thanks
how to access windows registry information using java?
how to access windows registry information using java?  can any one help me how to access windows registry information using java
how to create pdf file using java and itextjar
how to create pdf file using java and itextjar  How to create pdf file having paragraphs and alignments done using java and itextjar 5.10 version.? hope i get quick response
how to create pdf file using java and itextjar
how to create pdf file using java and itextjar  How to create pdf file having paragraphs and alignments done using java and itextjar 5.10 version.? hope i get quick response
how html tags are extracted using java?
how html tags are extracted using java?  I would like to need the java code for extracting html tags

Ads