tl  tr
  Home | Tutorials | Articles | Videos | Products | Tools | Search
Open Source | Tag Cloud | Follow Us | Bookmark | Contact   
 Java Scripting > BeanShell > Desktop Command

Desktop Command 

BeanShell is a small, free, embeddable Java source interpreter with object scripting language features, written in Java. BeanShell is a natural scripting language for Java. This requires the library bsh-2.0b4.jar to be in classpath. The following example shows starting the BeanShell GUI desktop from beanshell script.

File Name  :  
//Opens Beanshell desktop

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


import bsh.EvalError;
import bsh.Interpreter;

public class DesktopTest {

   @param args
   @throws EvalError 
  public static void main(String[] argsthrows EvalError {
    Interpreter interpreter = new Interpreter();
    InputStreamReader reader = new InputStreamReader(


It gives the following output,



Books Recommendation

bl  br