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

Open Default Browser 

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 the default browser using Browser.displayURL() API.

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

import java.util.Arrays;

import com.Ostermiller.util.Browser;

public class OpenDefaultBrowserTest {

   @param args
   @throws IOException 
  public static void main(String[] argsthrows IOException {

    //Initialize the command to start the browser
    //The command for opening the browser
    System.out.println("Command : " + Arrays.toString(Browser.defaultCommands()));
    //Open URL in the Browser



bl  br