Nam
Nam

Reputation: 35

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.

Upvotes: 0

Views: 6470

Answers (3)

Anna R
Anna R

Reputation: 1

It worked for me by opening the jar file trough terminal. running this command: java -jar Mars4_5.jar

Upvotes: 0

lex
lex

Reputation: 31

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:

  1. Go to System Preferences.
  2. Click on Security and Privacy.
  3. Search for 'Full Disk Access'.
  4. Click on the lock at the bottom left to be able to make changes.
  5. Click on the '+' icon at the bottom left of the FDA panel and a Finder prompt will appear.
  6. Go to System/Library/CoreServices/JavaLauncher.app
  7. 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.

Upvotes: 3

Nam
Nam

Reputation: 35

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.

Upvotes: 1

Related Questions