|
i need to tell java about class path in my case the local place that is ->"."
im reading from there configuration files . so i can't run only the jar
even when i do without the sh
java -cp /.;foo.jar com.umen.Main
or
java -cp .;foo.jar com.umen.Main
im still getting the error :
./foo.jar: ./foo.jar: cannot execute binary file
but when i do :
java -cp foo.jar com.umen.Main (without the ".")
its working , but my java app failed Because it is looking for the configurations files from "."
so why i can't add the "." to -cp ?
|