Skip to content

Instantly share code, notes, and snippets.

@William-Lake
Created September 1, 2017 20:03
Show Gist options
  • Select an option

  • Save William-Lake/ada00b24e0133f8050756e3092f18b54 to your computer and use it in GitHub Desktop.

Select an option

Save William-Lake/ada00b24e0133f8050756e3092f18b54 to your computer and use it in GitHub Desktop.
Java - Get current working directory
public static String workingDir = Paths.get(".").toAbsolutePath().normalize().toString();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment