java中Filefile=newFile(".")是什么意思?
这个应该属于操作系统中文件管理部分的知识吧……
在类Unix系统中,如果你在命令行中输入 ls -al,显示的头两行就是“.”和“..”,
一个表示“当前路径”;一个表示“上一级路径”……
在Windows系统中使用命令 dir 会看到相同的表示方法~
所以,new File(".") 就应该表示操作系统 shell 环境下“当前路径”映射的 File 对象~
50 JAVA打开之后显示anerrorhasoccurredseethelogfile?
是不是eclipse版本太新引起的,我在更新之后也出现了这样的问题,解决方法:
1,打开eclipse安装目录下的eclipse.ini文件;
2,打开的文本文件最后添加一行--add-modules=ALL-SYSTEM3,保存重新打开Eclipse。应该可以解决吧,不行的话你再参考其他人
还没有评论,来说两句吧...