4
cb219
167d

How hard can it be to reference a file on a mounted windows network drive with UNC path to the java command? Seems like everyone uses the same env variable but always different syntax. Sometimes it's
-Dsmth=file://\\net.work.path\sub.xml, then it's -Dsmth=file:///\\net.work.path\\sub.xml, then
-Dsmth="file:///\\\\net...xml"
and none of them work?! 😤

Comments
  • 2
    I lold at ///\\\\ 😂
  • 2
    @Lensflare I know it looks stupid, but /// worked, at least when it was local file system. Java supposedly handles \\ internally?
    Oh yeah, backslashes of course are special, so they should be escaped. Yeah, that didn't work out...
  • 1
    file:// is the schema. / Is the root of that schema. file:/// means the root directly of your local filesystem.

    I think the guy who created the syntax had publically admitted he didn't design it well.

    It may work if you just stick with / the whole way through and pretend Windows isn't left handed.
  • 1
    @lungdart I couldn't get it to work regardless of the syntax. Fuck it, I've used a workaround. But thanks to the inventor for apologizing.
Add Comment