jar path on linux
Hi
I was giving propertie file path in java class like this public static final String APPLICATION_PROPERTY_FILE_PATH ="\\\\machinename.com + "\\workspace\\Agr\\JavaSource"; Now issue is this I deployed this as jar file on linux like b.jar. Now it is complaining that Unable to locate resource application.properties obviously becuase of window path. now what path i should give for unix my jar is in home/ras/jar/b.jar/application.properties regards |
You can run jar files using
java -jar /home/ras/jar/b.jar To include the jar file in another application, you should include it as a library (ie in lib directory). In any case, I would change the hardcoded Windows alike path. Are you using Eclipse as development environment? Edit: I'm no Java programmer, so I could be mistaken. |
All times are GMT -5. The time now is 04:14 PM. |