pigfarmer Posted June 16, 2020 Posted June 16, 2020 Hi! I am trying to create a file like this in java via OSBOT: File myFile = new File("nameOfFile.txt"); I get: Blocked permission: ("java.io.FilePermission" "nameOfFile.txt" "write") I have tried to run osbot as sudo but it dose not seem to work. If anyone knows how to fix this problem, feel free to write a comment
pigfarmer Posted June 16, 2020 Author Posted June 16, 2020 11 minutes ago, Malcolm said: You can't access anything outside of the OSBot Data folder due to security reasons. That is why this error occurs. There is an API method to grab the path to this folder for you. Thanks! By "Osbot data folder" I guess you mean "OSBot/Data/". Am i wrong?