报错现象:java文件能够正常编译,但是不能在工具中运行
--------------------Configuration:
Usage: java [-options] class [args...]
(to execute a class)
or java [-options] -jar jarfile [args...]
(to execute a jar file)
where options include:
......
一开始也是没有办法,网上查了很多也是无果。
有的说是程序BUG,但是我觉得这么成熟的软件应该不会有这么低级的BUG吧,还好最终让我搞定了。
下面是我的解决方法:
打开JCreator工具,进入Configure-->Options-->JDK Tools-->选择“run application”,
Edit打开
然后再运行试试吧~