Join Slack
Communities
Powered by
Hello! Could I get the application's work path whe...
# compose-desktop
u
毛小川
03/03/2022, 6:42 AM
Hello! Could I get the application's work path when running? I tried
System.getProperty("user.dir")
,when running from
.exe
,it throw exception.I want get the application's path because of export log
j
Joakim Forslund
03/03/2022, 1:04 PM
For windows, you probably should look into
https://docs.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-getcurrentdirectory
u
毛小川
03/04/2022, 1:05 AM
Thanks!
2
Views
Open in Slack
Previous
Next