我已将STS更新到版本3.6.4.RELEASE.当我尝试启动我的java项目时,我在控制台中收到此错误消息:
Fehler:Hauptklasse Files.springsource.vfabric-tc-server-developer-2.9.3.RELEASE.base-instance.conf.logging.properties konnte nicht gefunden oder geladen werden
这意味着用英语:
错误:无法找到或加载主类Files.springsource.vfabric-tc-server-developer-2.9.3.RELEASE.base-instance.conf.logging.properties
有人有解决这个问题的方法吗?我已经清理了我的项目和服务器,但仍然出现错误.
谢谢
当我使用OR运算符时,只有一个表达式必须为true.第一个if语句是否更有效,因为java只检查第一个表达式?或者java检查两者?
public class Test {
public static void main(String args[]) {
boolean test = true;
if (test || calculate()) {
// do something
}
if (calculate() || test) {
// do something
}
}
public static boolean calculate() {
// processor-intensive algorithm
}
}
Run Code Online (Sandbox Code Playgroud)