No I don't mean relative to project or working directory. I mean that the following command java -jar myJar.jar ~/
should provide a string with "/home/user"
... This doesnt seem to be working as expected. I am passing the argument in via eclipse's "Run Configurations" menu and am not sure if this is causing a problem. The same result comes from a Runnable Jar...
Its throwing a malformed URL exception... but URI doesnt like it either
Does anybody know a way to implement this functionality? Such that an argument ~/
is passed into (String[] args)
as "/home/user"
?