我正在使用Eclipse。当我使用JFileChooser时,消息fatal: Not a git repository (or any of the parent directories): .git
不断出现在控制台中。每次导航到新文件夹时都会再次打印相同的消息。我还注意到,如果我导航到一个作为git存储库的文件夹,控制台将打印目录路径而不是错误消息。Git存储库错误消息与JFileChooser
这里是我使用的代码:
import javax.swing.JFileChooser;
public class JFileChooserTest
{
public static void main (String[] args)
{
JFileChooser test = new JFileChooser();
test.showOpenDialog (null);
}
}
我试图运行在Java中医生上面的代码,并没有错误消息出现,所以我觉得这个问题有事情做与Eclipse。
这是怎么发生的?有没有办法关闭这些消息?
我在这里有相同的行为...你的答案解释它。thx。;-) – ithofm