I am trying to create a new file inside of the appdata directory, but none of the environmental varibles that I am using with the classpath are working.
I want this program to be runnable on more than just my local machine, so I dont want to hardcode the values in there, which is why I am using these variables.
If I try the command
FileOutputStream outputStream = new FileOutputStream(new File("%HOMEDRIVE%//chromedriver.exe"));
or
FileOutputStream outputStream = new FileOutputStream(new File("%AppData%\\Local\\Temp"));
Both of them give the error
%HOMEDRIVE%\chromedriver.exe (The system cannot find the path specified)
Any advice?