Do You Need To Download Java On Mac



How to download and install the Java language on your machine as well as a program that lets you write, compile and run Java code. In this post, I’ll tell you how to install Java and write Java code in the IntelliJ Idea editor.

First you’ll need to click the “Accept License Agreement” radio button, then you can select the download that best fits your machine. Once you have downloaded the appropriate JDK file, you need to run the installer. To do this double click the file that you downloaded. Cross-play with Java Edition: Windows, Mac, and Linux Allows you to play with other Java edition players. Split screen multiplayer (online multiplayer requires subscription sold separately) Playing split screen allows up to four players to play on the screen at the same time.

Download Java

Java is a programming language owned and distributed by Oracle, but you can use it for free! You need to download and install the JDK or “Java Development Kit”.

  1. Go tohttp://www.oracle.com/technetwork/java/javase/downloads/index.html
  2. At the top of the page you should see a button that looks like this:

If you click on that button it should take you to a page with the current list of Java downloads.

Do You Need To Download Java On Mac High Sierra

First you’ll need to click the “Accept License Agreement” radio button, then you can select the download that best fits your machine.

  1. Once you have downloaded the appropriate JDK file, you need to run the installer. To do this double click the file that you downloaded.

This should launch the JDK installer dialog. It will ask you some questions, but you can just repeatedly click “next” as the default options should work fine for most developers.

Download IntelliJ IDEA

There are a number of different editors you can use to write your Java code. For this course we will use IntelliJ IDEA, a free program created and distributed by JetBrains. You are welcome to use any program you prefer.

  1. Go tohttps://www.jetbrains.com/idea/to download IntelliJ. If you click on the “download” button it should take you to a part of the page that describes the difference between “Ultimate” and “Community” editions.Make sure you download the community editionas that has more than enough features and is free to use for as long as you like.
  1. Once you’ve downloaded the IntelliJ installer find it in your files and run the program.

This should launch the IntelliJ installer. You should be able to click “next” as all the default settings should work fine for most developers.

  1. After you have fully installed IntelliJ you should open the program. The first time you open IntelliJ there are a few more set up steps you need to do.
  1. First IntelliJ will prompt you to see if you want to include any setting from previous versions, chances are this is your first time using IntelliJ so you should select “no”.
  1. Then IntelliJ will ask you to pick a theme. This is completely up to personal preference. You’ll notice that in this course we use the Darcula theme.
  1. Then you will be asked if you want to include any additional plugins. You do not need any plugins for this course, so you should be able to just select next and move on from these prompts.
  1. Now you should be taken to the IntelliJ editor. It will ask you what you want to do first and you should select “Create New Project”.

This should take you to the Create new Project prompt.

Since this is the first time you will be writing Java with IntelliJ you need to configure IntelliJ to know where the JDK you previously downloaded is on your machine. Click the “New…” button next to the drop down and select the location of the JDK on your machine.

Note that by default the JDK is in Program Files > Java.

  1. Once your JDK is included you can create a new project. In the dialog box once you select “next” you will be taken to a new dialog box that will ask you if you want to create your project using a template. For this course we will not use any templates, so simply click next.
  1. The next step in creating a new project is adding the name. IntelliJ will use this name to create a new folder on your computer to hold all the project files.
  1. Once you have named your project and selected “finish” you have a new, but empty IntelliJ project. To start writing code you’ll need a new Java file. To add a Java file, expand the project folder in your navigation bar on the left, right click on the “src” folder, select “new” and choose “Java Class” like shown below:

Now you have an empty file where you can write, compile and run Java code!

Step 3: Installation

Windows:

    Double-click the install file (bluej-309.msi).

    This will run a standard installation. Follow the instructions on screen. The installer will install the executable bluej.exe. Execute this to run BlueJ.

    When executing BlueJ you might get dialog from the firewall asking you whether you want to block or unblock BlueJ; we recommend that you choose not to block BlueJ.

    If you have more than one Java version installed, BlueJ will let you select your preferred version the first time it is executed. This can be changed later by running the 'Select BlueJ VM' utility from the Start menu.

Macintosh:

Note: BlueJ 3.0+ requires Java 6. Updating to the latest Java version (via the Mac OS Software Update feature) is recommended. BlueJ 3.0.9 and later also has a package which bundles Java 7, and does not require Java to be installed separately.

Download and expand the install file (BlueJ-309.zip). Move the resulting folder to your preferred location (for example Applications).

Debian, Ubuntu, and other Debian-based systems

Check your distribution's instructions on how to install 'deb' packages. In many cases it will be as simple as double-clicking the downloaded file from within a file manager, and then providing an administrator password to allow the installation to proceed.

Note the 'deb' package requires one of the following packages to be installed:

sun-java6-jdk or openjdk-6-jdk or sun-java7-jdk or openjdk-7-jdk

Install Java On A Mac

Installing BlueJ will normally cause an appropriate JDK to be installed.

Please note, the example projects will be installed under /usr/share/doc/BlueJ/

Thanks to Joe Lewis for providing the initial version of the .deb package.

Unix:

    Make sure you have a suitable JDK. The Oracle JDK is recommended as it is the most tested. Currently the 'gij' (GNU java interpreter) cannot be used.

    Run the installer by executing (from the command shell)

      /path/to/jdk/bin/java -jar bluej-309.jar

... where '/path/to/jdk' should be replaced by the actual path to the JDK.

Note: if you have a suitable java binary in a directory listed in your PATH environment variable, you may be able to omit the '/path/to/jdk' above. Be careful that this does not run an incompatible java implementation (such as 'gij') however! You can check if a Java implementation is in your path by runng 'java -version'.

In the installer, select an installation directory and your JDK directory and install. By default, the installer will install into a directory called 'bluej' inside the directory from which you launch it, and it will pick up the JDK location automatically (if it is run correctly according to the instructions above).

In the directory where BlueJ was installed, you will find a file named bluej. This is the launcher script. Execute this script to start BlueJ. For example:

Mac

Note: This installer can be executed on any system with Java installed (including Windows and MacOS), but Windows/MacOS specific icons and configurations will not be present.

Optional: Remove the Installer

If you do not want to make further installations, you can now delete the installer file.

Step 4: Opening a project

After starting BlueJ, open a project by selecting 'Open' from the Project menu. You can find some examples in the 'examples' directory. After the project has been opened, right-clicking (Mac: control-clicking) a class lets you select a constructor from a pop-up menu to construct an object.

Optional: Subscribe to mailing list

If you want to be notified of new releases, go to bluej-announce and subscribe.

If you are interested in general discussion of BlueJ-related questions, read or subscribe to bluej-discuss. There is also an archive of past messages that you can read without subscribing.

Where to from here?

If you have any trouble with the installation, please read How to ask for help.

If it all works this far, you might like to start reading the Tutorial.