The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #5 (permalink)  
Old 10-03-2007
umen umen is offline
Registered User
  
 

Join Date: Aug 2005
Posts: 239
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 ?