Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to build Java Development Environment under Mac OS X

2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

This article will explain in detail how to build a Java development environment under Mac OS X. The content of the article is of high quality, so the editor shares it for you as a reference. I hope you will have some understanding of the relevant knowledge after reading this article.

This paper introduces how to build the java development environment under the Mac osx system. With the java development environment, we can do Java-related development. Both Eclipse and Android Studio can run in the JVM environment, so we will briefly summarize how to configure java environment variables under Mac osx.

Let's first take a look at the author's computer configuration:

Open the terminal and see what shell command the version 10.10 system uses:

The output is bash, which means Bourne shell, which is the default Unix Shell command.

Let's view the author's java version from the command line:

If your system has successfully installed JDK, you can see the corresponding jdk version through java-version.

If you don't have JDK installed on your computer, you can download jdk from Oracle's official website.

Http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html

The author downloaded version 1.7, and the current jdk*** version is 1.8.

Configure java environment variables

Enter sudo vim etc/profile

Use vi to edit profile files

Type I to enter insert mode

At the end of the file, add the java path

JAVA_HOME= "/ Library/Java/JavaVirtualMachines/jdk1.7.0_75.jdk/Contents/Home/"

CLASS_PATH= "$JAVA_HOME/lib"

PATH= ".; $PATH:$JAVA_HOME/bin"

After adding, press esc to exit insert mode and type wq! Save the exit file.

At this step, we have configured the global path and classpath environment variables for java.

On how to build the Java development environment under Mac OS X to share here, I hope that the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report