为什么eclipse控制台不输出内容?

执行数据库脚本,插库完成,但是控制台上不显示”Finish”,单步执行确实执行到System.out.println("Finish");就是不显示。

 public class AntExecSql {  

    public static void main(String[] args) throws IOException {   

        SQLExec sqlExec = new SQLExec();   
        sqlExec.setDriver("com.mysql.jdbc.Driver");   
        sqlExec.setUrl("jdbc:mysql://192.168.0.210/zxpos_nic?allowMultiQueries=true");  
        sqlExec.setUserid("root");   
        sqlExec.setPassword("root");   
        sqlExec.setSrc(new File("/root/0868.sql"));  

        sqlExec.setOnerror((SQLExec.OnError)(EnumeratedAttribute.getInstance(   
        SQLExec.OnError.class, "abort")));  

        sqlExec.setProject(new Project());   
        sqlExec.execute(); 
        System.out.println("Finish");
    } 
}

你确定你的Console视图打开了,当前是选择在Console视图下?

可以看一下 代码输出方式或 运行环境

试一下这个 windows-run/debug,先把2个show when前面的勾去掉,点apply,再把2个勾选上,点apply