Under the Mac system, it is felt to build the Java environment.

Source: Internet
Author: User

Recently prepared to write some network applications, so to build a Java environment, started not so well, so here to share the experience.

1. The first step in building a Java environment must be the JDK, Do not know why in the OSX10.10 environment, the installation of JDK7 can not be used by other programming tools, so must go to the official download old JDK6 can, Oracle official website for a long time also did not find, on the Apple official website instead find, really strange, the following share its links.

http://support.apple.com/kb/DL1572

2. Install MyEclipse10 (good advanced, now 10, time is really fast)

This environment online many places have downloaded, can choose by themselves, and now the crack is also very perfect.

However, the installation will be touched by the virtual memory problem, the following solutions can be resolved:

since there is no virtual memory (0Mb of virtual memory) then the virtual memory function is not turned on, open virtual memory: If your memory is above 4G, you can do so. Mainly because the Mac is memory when the virtual memory, affecting the performance of the system.

Disabling virtual memory
sudo launchctl unload-w/system/library/launchdaemons/com.apple.metadata.mds.plist
Delete swap file
sudo rm/private/var/vm/swapfile*
Enable virtual memory
sudo launchctl load-w/system/library/launchdaemons/com.apple.metadata.mds.plist

The building of the Java environment is ready, I hope you can help some students.

This article is from the "edu0451" blog, make sure to keep this source http://edu0451.blog.51cto.com/9820680/1600912

Under the Mac system, it is felt to build the Java environment.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.