Java class path error: ./filename.jar: cannot execute binary file -
i got following issue when execute java class specified classpaths. search google many times solution still don't take effect. please give me help, thanks. here description of problem:
when run command on window:
$ java -classpath appfeature.jar;args4j2.0.6.jar mava.appclassifier class appclassifier print out string "helloworld" standard output. got following result :
$ java -classpath appfeature.jar;args4j2.0.6.jar mava.appclassifier usage: java [-options] class [args...] (to execute class) or java [-options] -jar jarfile [args...] (to execute jar file) options include: -d32 use 32-bit data model if available -d64 use 64-bit data model if available -server select "server" vm -hotspot synonym "server" vm [deprecated] default vm server. -cp <class search path of directories , zip/jar files> -classpath <class search path of directories , zip/jar files> ; separated list of directories, jar archives, , zip archives search class files. -d<name>=<value> set system property -verbose:[class|gc|jni] enable verbose output -version print product version , exit -version:<value> require specified version run -showversion print product version , continue -jre-restrict-search | -no-jre-restrict-search include/exclude user private jres in version search -? -help print message -x print on non-standard options -ea[:<packagename>...|:<classname>] -enableassertions[:<packagename>...|:<classname>] enable assertions specified granularity -da[:<packagename>...|:<classname>] -disableassertions[:<packagename>...|:<classname>] disable assertions specified granularity -esa | -enablesystemassertions enable system assertions -dsa | -disablesystemassertions disable system assertions -agentlib:<libname>[=<options>] load native agent library <libname>, e.g. -agentlib:hprof see also, -agentlib:jdwp=help , -agentlib:hprof=help -agentpath:<pathname>[=<options>] load native agent library full pathname -javaagent:<jarpath>[=<options>] load java programming language agent, see java.lang.instrument -splash:<imagepath> show splash screen specified image see http://www.oracle.com/technetwork/java/javase/documentation/index.html m ore details. ./args4j2.0.6.jar: ./args4j2.0.6.jar: cannot execute binary file thanks
Comments
Post a Comment