tl  tr
  Home | Tutorials | Articles | Videos | Products | Tools | Search
Interviews | Open Source | Tag Cloud | Follow Us | Bookmark | Contact   
 Tools and Libs > Ostermiller Utilities > How to open notepad

How to open notepad 

Ostermiller Java Utilities contain various components such as CSV parsing, Base64 Encoding, MD5 digest, String and Exec Helper classes. This requires the library ostermillerutils-1.08.01.jar to be in classpath. The following example shows opening a notepad using ExecHelper.exec() API.

File Name  :  
com/bethecoder/tutorials/ostermillerutils/ExecHelperTest2.java 
Author  :  Sudhakar KV
Email  :  [email protected]
   
package com.bethecoder.tutorials.ostermillerutils;

import java.io.IOException;

import com.Ostermiller.util.ExecHelper;

public class ExecHelperTest2 {

  /**
   @param args
   @throws IOException 
   */
  public static void main(String[] argsthrows IOException {
    ExecHelper execHelper = ExecHelper.exec(
        new String [] { "notepad.exe""C:/Test/rule_engine_names.txt" });
    System.out.println("Process Status : " + execHelper.getStatus());
  }

}
   



 
  


  
bl  br