MCPcopy Create free account
hub / github.com/beanshell/beanshell / main

Method main

src/bsh/Console.java:36–55  ·  view source on GitHub ↗
( String args[] )

Source from the content-addressed store, hash-verified

34public class Console
35{
36 public static void main( String args[] ) {
37
38 if ( !Capabilities.classExists( "bsh.util.Util" ) )
39 System.out.println("Can't find the BeanShell utilities...");
40
41 if ( Capabilities.haveSwing() )
42 {
43 bsh.util.Util.startSplashScreen();
44 try {
45 new Interpreter().eval("desktop()");
46 } catch ( EvalError e ) {
47 System.err.println("Couldn't start desktop: "+e);
48 }
49 } else {
50 System.err.println(
51 "Can't find javax.swing package: "
52 +" An AWT based Console is available but not built by default.");
53 //AWTConsole.main( args );
54 }
55 }
56}

Callers

nothing calls this directly

Calls 5

classExistsMethod · 0.95
haveSwingMethod · 0.95
startSplashScreenMethod · 0.80
printlnMethod · 0.65
evalMethod · 0.65

Tested by

no test coverage detected