今天在用jcreator执行程序时发生以下情况:
各种环境变量都有正确配置,且之前一直能够正常使用,程序也是以前运行过完全正确的。
经过一番搜索,发现eclipse也会发生这样的情况,是因为它存在的bug导致的:
https://www.iteye.com/blog/jackzlz-1714400
也许jcreator上也是同样的问题?尝试了stackoverflow上提供的方案:
https://stackoverflow.com/questions/9862037/trouble-compiling-any-java-code-in-eclipse
I too have had this problem. Try restarting Eclipse. If that doesn’t work, restart your computer. If even that doesn’t work, re-install Java. Its an annoying bug that usually occurs when your computer goes into standby while a program is running on Eclipse.
成功!