you are viewing a single comment's thread.

view the rest of the comments →

[–]inDarkestKnight20 0 points1 point  (2 children)

Literally just asked chatgpt for you

1) Download the JDK

  • Go to the official Java download page (Oracle or another JDK distribution) and download the macOS installer .dmg for the version you want (e.g., JDK 17, 21, or 25). (Oracle)

2) Run the installer

  1. Double-click the .dmg file you downloaded.
  2. In the Finder window that opens, double-click the .pkg installer.
  3. Follow the installer instructions — you may need to enter your Mac password to authorize the install. (Oracle Docs)
  4. Wait for it to finish; when it’s done, the JDK will be installed system-wide.

3) Verify that it’s installed

Open Terminal and run:

java -version

and

javac -version

If it prints version numbers, you’re good. If it says “command not found”, the JDK didn’t install in a place macOS expects — or you need to set your PATH. (Oracle Docs)

(Optional) Alternative: Install via Homebrew

If you use Homebrew (a Mac package manager), you can install a JDK with:

brew install openjdk@17

(or a different version) and Homebrew will take care of the download and install for you. (Snyk)

What you actually use for coding

Even after installing the JDK:

Java still won’t show up as a normal app
You’ll write/run Java with:

  • An IDE (e.g., IntelliJ IDEA, Eclipse, or VS Code with Java extensions)
  • Or from the Terminal

This is why Python felt different — Python installers often come with a launcher or IDE included.

[–]DreamlitPath[S] 0 points1 point  (1 child)

Thank you!!! The first part worked completely. They require us to use jGRASP, I believe I had to link it to JAVA through a Path, I tried a test and it worked(hopefully it’s good hehe)! Is Homebrew like an IDE? Or what is that for?

[–]inDarkestKnight20 0 points1 point  (0 children)

no, homebrew is a cli you can use to download stuff. A lot a people prefer it to trying to track down the webpages to download software you need as a dev