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.