'How to open a saved .asm file in MARS on MacOS
I am new to using MIPS and I can't find how to open a file that I saved. I saved a .asm file under my downloads folder but when I try to open a file in MARS and navigate to the same downloads folder, the .asm file does not appear.
I'm using MARS on MacOS.
Solution 1:[1]
I figured out that I had to allow access to finder directories for jar files. Mac didn't allow mars to initially access any of my directories.
Solution 2:[2]
As stated above, you need to allow Full Disk Access in your System Preferences in macOS. Here they mention that you need to search for 'JavaLauncher.app'. This is an issue due to macOS changes with security management.
To give Full Disk Access to JAR files on macOS:
- Go to System Preferences.
- Click on Security and Privacy.
- Search for 'Full Disk Access'.
- Click on the lock at the bottom left to be able to make changes.
- Click on the '+' icon at the bottom left of the FDA panel and a Finder prompt will appear.
- Go to System/Library/CoreServices/JavaLauncher.app
- Select the JavaLauncher.app and click 'Open'
That's it. You should be able to access files through your Java application. This helped to fix my issue with MARS MIPS not saving files properly on my laptop. I constantly needed to save it elsewhere.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Nam |
Solution 2 | DharmanBot |