运行运行其他类的Java类
我正在使用Powershell运行一个脚本,该脚本通过调用其主更新实用程序类(调用其他类)来更新网站。 问题是它运行第一个类(UpdateDBTableType1),但不运行其他类 如果我在eclipse中运行该类,它将按预期顺序调用所有更新类 有什么问题吗 Powershell脚本:运行运行其他类的Java类,java,powershell,Java,Powershell,我正在使用Powershell运行一个脚本,该脚本通过调用其主更新实用程序类(调用其他类)来更新网站。 问题是它运行第一个类(UpdateDBTableType1),但不运行其他类 如果我在eclipse中运行该类,它将按预期顺序调用所有更新类 有什么问题吗 Powershell脚本: java -classpath 'lib\*;.' UpdateWebsite | tee-object -filepath "F:\Java Workspace\UpdateWebsiteOutput\
java -classpath 'lib\*;.' UpdateWebsite | tee-object -filepath "F:\Java Workspace\UpdateWebsiteOutput\log.txt"
主要公用设施类别:
public class UpdateWebsite {
public static void main(String[] args) throws Exception
{
UpdateDBTableType1.main(arguments);
UpdateDBTableType2.main(arguments);
UpdateSiteMap.main(arguments);
CreateImages.main(arguments);
}
}
在生产环境中,UpdateDBTableType1.main是否可能满足某些条件,从而导致JVM退出?可能是未处理的异常?就是这样。我引用的Eclipse拥有但不在lib文件夹中的jar触发了一个类未找到错误。谢谢你,伙计!