xxx未标识为内部或外部命令

时间:2012-03-12 16:10:08

标签: java

Sry再次提出这个问题,因为它最常见的解决方案是包含路径..我正在尝试实现一个类,并在实现后显示以下内容

java -classpath java-getopt-1.0.8.jar;3dm-0.1.0.jar;xerces.jar tdm.
tool.TreeDiffMerge
3DM XML Tree Differencing and Merging Tool version 0.1.0 build 0.1.0-2006.02.07.
12.26.44
Usage: 3dm [options] {-m base branch1 branch2|-d base branch1 |-p base patch} [o
utfile]
Use the -m (or --merge) option to merge the files base, branch1 and branch2
Use the -d (or --diff) option to diff the files base and branch1
Use the -p (or --patch) option to patch the file base with the file patch
The options are:
-e, --editlog[=logfile]
   Log edit operations to logfile, default edit.log
-c, --copythreshold=bytes
   Threshold for considering a duplicate structure to be a copy. Default value i
s 128 bytes

现在没有创建exe ..你知道pblm可能是什么..或者你能提出解决这个问题的方法吗?

1 个答案:

答案 0 :(得分:1)

输出似乎与您的问题标题无关。

从消息中可以清楚地看出,您没有正确调用该工具,并且需要向该工具提供命令行参数以告知它该做什么。 E.g:

java -classpath java-getopt-1.0.8.jar;3dm-0.1.0.jar;xerces.jar tdm.tool.TreeDiffMerge -p base patch

如果您已经实现了自己的主类并想要调用它,则需要在命令行而不是tdm.tool.TreeDiffMerge上提供类名。 (如果你想要创建一个exe,希望你的类能做到这一点,因为Java与内在创建exes毫无关系。)