我做了一个java程序。我使用了eclipse,它是一个maven项目。现在,当我从 Windows 命令提示符运行程序时,它运行良好。这里我如何从 Windows 命令提示符运行它
D:\Personal Work\eclipse 32 Bit\workspace\....\target\classes>
java -cp ".;..\dependency-jars\*" com/softech/ls360/integration/BatchImport vintners
它工作正常。我的依赖 jar 文件夹包含这些 jar 文件
现在,当我从 linux 运行相同的程序时。这是我的运行方式
root@Basit:/home/test/script/classes# java -cp .;../dependency-jars/*; com.s
oftech.ls360.integration.BatchImport vintners
然后我得到了错误
....
-javaagent:<jarpath>[=<options>]
load Java programming language agent, see java.lang.instrument
-splash:<imagepath>
show splash screen with specified image
../dependency-jars/commons-collections-3.2.1.jar: line 1: PK??: command not found
../dependency-jars/commons-collections-3.2.1.jar: line 2:
../dependency-jars/commons-collections-3.2.1.jar: line 2: ?8: command not found
../dependency-jars/commons-collections-3.2.1.jar: line 3: syntax error near unex
pected token `)'
../dependency-jars/commons-collections-3.2.1.jar: line 3: ? ¶META-INF/MANIFE
ST.MF?VKo
_¦?z? ?%+v?N??!ö!P@
(
_?o.5?$
com.softech.ls360.integration.BatchImport: command not found
为什么我会收到这些错误。我如何在 linux 上运行它?请帮忙
谢谢