( String args[] )
| 34 | public 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 | } |
nothing calls this directly
no test coverage detected