![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
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 ? |
|
||||
|
no it does not it uses the java ResourceBundle mechanism
that basically takes the files from the classpath even if i do : java -classpath /home/umen;./foo.jar com.umen.Main it still gives me the error: /home/umen/foo.jar: /home/umen/foo.jar: cannot execute binary file |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|