Lesson 2 - Cài đặt môi trường và công cụ phát triển JDK 11 và thiết lập Java Home trên Mac M1

01/02/2023 - 1 phút

Follow  on Google News

Java là một trong những ngôn ngữ lập trình phổ biến nhất hiện nay với rất nhiều ứng dụng trên khắp thế giới. Trong bài học này, chúng ta sẽ tìm hiểu về quy tắc đặt tên, kiểu dữ liệu và ép kiểu, toán tử, cấu trúc điều khiển và rẽ nhánh. Việc hiểu và sử dụng thành thạo các khái niệm này sẽ giúp bạn trở thành một lập trình viên Java giỏi. Hãy bắt đầu học các khái niệm này ngay bây giờ!

1. Install Homebrew

To be able to install, you must have Homebrew installed first.

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Add Homebrew to your path.

echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> /Users/vishal/.zprofile eval "$(/opt/homebrew/bin/brew shellenv)"

Check if Homebrew is in your path.

brew --version

2. Install JAVA

Next, of course, you need to install Java if you haven’t already.

Install Rosetta 2

sudo softwareupdate --install-rosetta

Install Java using Homebrew.

brew tap homebrew/cask-versions && brew install --cask zulu11

Check if Java is installed and working.

java --version

So we have successfully installed Java 11.

3. Install Eclipse IDE for Apple M1 Silicon

Update January 2022: Since writing this article, official releases are now available with AArch64 MacOS versions for Mac M1 machines from the official download page: https://www.eclipse.org/downloads/packages/

Then download the installation package for M1.

After successfully downloading, click on the installation icon.

Then we choose open.

Select “Eclipse IDE for Java Developers”

Then select Install

Then select Launch

So we have successfully installed the development environment and tools.