Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在运行 java 应用程序,由于一些错误它被关闭,我想检查日志中的错误。如何使用该日志重新打开 Java 控制台,或者有没有其他方法可以检查 Java 控制台的日志。?
将您的代码放在 try catch 块中,并在 catch 块中打印您的异常。
尝试在控制台上打印一些东西。 例如:System.out.println("Program Completed").
System.out.println("Program Completed").