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









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
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 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
notepad
notepad  i want java code for 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. ExampleADS_TO_REPLACE_1 package NotePad... java.util.Scanner; import javax.swing.*; public class Notepad extends JFrame
How to Open Picture From M.S. Access Database using Java Servlet ?
How to Open Picture From M.S. Access Database using Java Servlet ?  ... Database But i m still not able to open this picture through Java using M.S. Access and i wants to open this Picture On Web Browser using Java Servlet anybody can
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 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
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 open java
how to open Java  how to open java file simple Java Example
Expression Language execution in notepad
Expression Language execution in notepad  how to execute expression language in notepad for java i am using apache tomcat server4.0.
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... as follows: Hello, World! How to Program in Java
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
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
how to open a file with a jbutton? - Java Beginners
how to open a file with a jbutton?  Hello Is it possible that by clicking on a button it can open java html file or doc exists on the pc? I searched and I found that it is possible to open a web page so I tried to open
Java Swing Open Browser
Java Swing Open Browser Java provides different methods to develop useful applications. In this section, you will learn how to create an example that will open the specified url on the browser using java swing. This example will really
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
need to open a file that is in server using jsp
need to open a file that is in server using jsp   im doing a web... open link it should be opened in jsp.downlaoding part was done by me. wt i need is just want to open a pdf in jsp.is it possible to open sever file from jsp.Plz
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
NotePad - Swing AWT
NotePad  //CODE FOR NOTEPAD /* * To change this template, choose Tools | Templates * and open the template in the editor. */ //Author...++; } } ); JMenuItem m12 = new JMenuItem("Open
How to open an Acroform in iText?
How to open an Acroform in iText?  I modified a client's Acroform in Acrobat Pro 9, and now the client says he can't open it in iText. I had never even heard of iText before this. It's been a while since I did any Java coding
How to Open Text or Word File on JButton Click in Java - Java Beginners
How to Open Text or Word File on JButton Click in Java  How to Open Text or Word File on JButton Click in Java
java how to open CD drive through code - Applet
java how to open CD drive through code  hi every one i wanted to write a code for my application using that functionality i want to be able to open... in java...can anybody tell me how to use that package in 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 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 create users in LDAP using java?
how to create users in LDAP using java?  how to create users in LDAP 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 create an excel file using java
how to create an excel file using java  how to create an excel file 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
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
how to authenticate user using TIVOLI api in java?
how to authenticate user using TIVOLI api in java?  Hi, I want to integrate IBM TIVOLI API to create/authenticate users using java code. Please help....... Thanks in advance
how to read and write an xml file using java
how to read and write an xml file using java  Hi Can anyone help me how to read and write an xml file which has CData using java
How to Hide Button using Java Swing
How to Hide Button using Java Swing  Hi, I just begin to learn java programming. How to hide the button in Java programming. Please anyone suggest... Programming application how to hide the buttons using Java Swing. Please Visit
how to upload file using FTP in java
how to upload file using FTP in java  hai, i want to upload file using FTP in java Webservices.. Tel me some Articles Regards Asha
how to compare 2 arrays using java?
how to compare 2 arrays using java?  hi can anyone give me the information regarding comparision of arrays.   Java Compare Arrays
How to using Binary Search Array Java ?
How to using Binary Search Array Java ?  Hi, I am beginners in Java Programming Language. I am trying to create small application using Array functions. The problem is that how to use binary search array in Java. Please give
how to run a java program using run.exec()?
how to run a java program using run.exec()?  Hi..i want to compile and run a java file using run.exec().i.e., without compiling and running from.... can i expect a sample java program using run.exec(). Thanking you
How to split string in Java using comma?
How to split string in Java using comma?  Hi, Share the example code for splitting the string in Java using comma as separator. Thanks   ...(","); You can check the thread How to split string in Java?. Thanks
How to send sms alerts to mobile using java?
How to send sms alerts to mobile using java?  Hi i have used the Code to send message on mobile using java code, it is not working - COM2...(CommPortIdentifier.java:105) confusion is there what is COM2 port and how

Ads