java - 批处理作业从后端工作,但通过 autosys 显示找不到类
问题描述
我的问题是我正在通过 autosys 运行我的批处理作业,它会抛出noclassdeffounderror和classnotfoundexception。我知道这与类路径有关。我的类路径不知何故坏了。我已尽一切努力修复它,但没有运气。
下面是我在 Linux shell 脚本中使用的命令
导出 csv_classpath=.:/csv/home/path/lib/log4j-1.2.14.jar:/csv/home/path/app.jar:/csv/home/path:
Java -classpath "$csv_classpath" my.main.newfile arg0
只是要注意当我在后端运行它时它工作得很好,但它只在通过 autosys 时显示错误
请帮助
解决方案
推荐阅读
- python - 有没有办法让程序在 python 中运行不止一次
- python - 如何找到几个相同的模板 OpenCV Python
- angular-material - Angular 7 的 Angular 材质
- .net - 表达式必须具有类类型 - C++/CLI
- python - 查找列表中的第一个非连续数字
- git - 关于还原和提交的 Git 用例说明
- numerical-methods - 非线性微分方程数值解系统
- typescript - 重载 1 of 2, '( associatedClassGetter: ModelClassGetter, foreignKey?: string | undefined): Function',给出以下错误
- ruby-on-rails - 在 Ruby On Rails 中存储自定义 HTML 元素
- python - 如何删除数据库中的项目而不会遇到 405 错误