I am a freshman computer students, because learning python installation anaconda last semester when to eat a lot of losses, this semester to learn Java configuration environment and want to download records, for the use of Mac programming learning convenience!
first of all, the first to download the JDK's official website (https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html), a blogger computer system is macOS Mojave, accept first, and then select the macOS version download,
after the download is complete, click install, and direct the next step, according to the default installation, after installation is complete, open a terminal, type the command Java version to check the Java version, if can display properly, then the installation was successful! The next is to configure the environment variables,
If this is your first configure the environment variables, you can use the "touch. The following to create a". The following hidden configuration file (if you are to edit the existing configuration file, use the "open - e. following" command) : blogger because learning python, has been configured, so added directly below the python environment variable,
Enter the following configuration:
JAVA_HOME=/Library/Java/JavaVirtualMachines jdk1.8.0 _201. JDK/Contents/Home
PATH=$JAVA_HOME/bin: $PATH:
The CLASSPATH=$JAVA_HOME/lib/tools. The jar: $JAVA_HOME/lib/dt. Jar:.
Export JAVA_HOME
The export PATH
Export the CLASSPATH
cross the red line in the JDK installation directory for you
after close the file, the terminal type source. The following configuration to take effect!
so that the JDK is installed! you can also check the terminal input javac!
the next step is to download the eclipse, download links: https://www.eclipse.org/downloads/
[size=18 px] then click Download packages.
According to their own choice of Windows or Mac or Linux computer system (pay will pop up a page, but not have to pay for the eclipse download, just you too much money is you can donate, donate don't donate optional);
Here you can choose to download in China, so download speed will soon!
After installation, directly to pull the eclipse icon,
followed by configuration, open the eclipse and the eclipse
select a your work address, click launch startup, shut down the top left corner of the welcome, then from the Angle the file on the desktop, select the Java project (Hello), create a Java project, if not from the other looking for!
Write the name of your project, choose the JDK installation directory, thus creates a Java project. Click hello, click the SRC, right-click on the SRC, select new, choose a class, create a Java file,
,
create.
the next is happy programming!
Thank you for your support!
CodePudding user response:
Thanks for sharing, blogs are recorded in the https://mp.csdn.net/posteditCodePudding user response:
How to create. The following hidden configuration file, please answer, I'm newCodePudding user response: