首页 > 解决方案 > 批处理作业从后端工作,但通过 autosys 显示找不到类

问题描述

我的问题是我正在通过 autosys 运行我的批处理作业,它会抛出noclassdeffounderrorclassnotfoundexception。我知道这与类路径有关。我的类路径不知何故坏了。我已尽一切努力修复它,但没有运气。

下面是我在 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 时显示错误

请帮助

标签: javalinuxclasspath

解决方案


推荐阅读