JDK1.6 Download path under Mac
http://support.apple.com/kb/DL1572
Java version issues with Mac OS and solutions to problems with JDK source code not found in eclipse
Download the Java Development Kit with source code
The following java_for_os_x_2013005_dp__11m4609.dmg.
Java JDK under MAC
If you can't find the place where the damn jdk1.7 is installed, consider sticking to this address (this is the location of my system, I guess everyone should be about the same). /library/java/javavirtualmachines/jdk 1.7.0 Developer preview.jdk/contents/home
Mac OS X x64 installation Java7 and how to uninstall
Download the installation file for Mac version on official website
Website address: http://www.oracle.com/technetwork/java/javase/downloads/index.html
The deletion method is also very simple, in the command line to/library/java/javavirtualmachines this directory, delete the corresponding JDK can be
MAC OS x installation JDK1.6 and related memos
SVN command-line installation
Uckily there is a-to-install SVN without Xcode, simply install the Command line Tools for Mountain Lion available as a Separate 116MBdownload from the Apple Developer site. You'll need an Apple Developer ID, but it's free and easy to create using your existing AppleID.
Once you ' ve downloaded the 116MB file and installed the tools, you can verify that SVN is installed and check the version By opening and enter the following at the Terminal
command promptsvn –version
Clean up svn files in Mac
sudo find yourdir-name ". SVN"-exec rm-r {} \;
修改Hosts文件
$ sudo nano/private/etc/hosts
Control+o to save the file.
Press Enter on the filename prompt, and
Control-x to exit the editor.
Dscacheutil–flushcache # Flush The DNS cache
Four ways to modify the Hosts under Mac OS X Lion
MAC can set the location of environment variables, view and add PATH environment variables
1./etc/profile (it is not recommended to modify this file)
A global (public) configuration that reads the file when logged on, regardless of the user.
2./ETC/BASHRC (typically add system-level environment variables to this file)
Global (public) configuration, which will be read by the bash shell, regardless of the way it is executed.
I'm here to add aliases to the Mysqlstart, MySQL, and mysqladmin commands to ensure that each user can use these 3 commands.
3.~/.bash_profile (typically add user-level environment variables to this file)
(Note: Linux is. BASHRC and Mac is. Bash_profile)
This file will not be read until the bash shell is executed in login mode. The file is only executed once! By default, he sets some environment variables
I am here: Set the terminal color,
I am here: set command aliases alias Ll= ' Ls-la '
I am here: Set environment variables: Export Path=/opt/local/bin:/opt/local/sbin: $PATH
The format of path is:
——————————————————-
Path= $PATH: <path 1>:<path 2>:<path 3>:--:<path n>, separated by colons.
Add the path environment variable:
——————————————————-
[[email protected] U-BOOT-SH4] #export path=/opt/stm/stlinux-2.3/devkit/sh4/bin: $PATH
To view the path environment variable:
——————————————————-
[[email protected] U-BOOT-SH4] #echo $PATH
/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin
How to downgrade Maven from 3.x to 2.x on Mac OS
$ cd/usr/share/java
$ ls-q1 | grep maven #check If your desired maven version is there
apache-maven-2.0.9
maven-2.2.0
maven-2.2.1
maven-3.0.2
$ CD. #go up
$ ls-l | grep maven #check What's current version is
Maven-java/maven-3.0.2
$ sudo rm maven #remove unwanted symlink
Password:
$ sudo ln-s java/maven-2.2.1 maven #set it to maven 2.2.1
Eclipse.ini in MAC
Cannot find Eclipse.ini file edit memory limit on Mac, right click Eclipse Program in Eclipse installation directory, select "Show Package Contents", Eclipse.ini is under Content/macos
http://www.daniel-journey.com/archives/1010
1. Mac OS (version 10.8) comes with jdk1.6 or JAVA6, but no source code. Mac OS comes with Java 6 which is released and updated by Apple, slightly different from Oracle's Java 6, such as No Rt.jar, instead of Classes.jar other details for reference http://my.oschina.net/hmj/ blog/79939
2. Oracle officially does not provide Java 6 for Mac OS use, but Java 7 and source code can be downloaded from Orace official website, Oracle provides detailed installation guide, this article does not introduce. See Http://www.java.com/zh_CN/download/help/mac_install.xml
3. Mac OS Java 6 and Java 7 can coexist, this I did not test, do not introduce, online a lot of posts
4. Describes where to download Java 6 source code and resolve the problem that eclipse cannot find the source code the JAR File/system/.../classes.jar has no sourece attachment.
Detailed content 1. How do I query the Java version of this machine?
Open Terminal, enter Java-version
yangdemacbook-air:~ feiniao$ java-version
Java Version "1.6.0_51"
Java (TM) SE Runtime Environment (build 1.6.0_51-b11-457-11m4509)
Java HotSpot (TM) 64-bit Server VM (build 20.51-b01-457, Mixed mode)
2. Where is the Java Control Panel on your Mac?
Please note that only Java 7 with Oracle installed will have a control panel, detailed in Orace's official website.
Click the Apple icon in the upper-left corner of the screen.
Go to System Preferences
Click the Java icon to access the Java Control Panel.
3. Solve the problem that eclipse cannot find the source code the JAR File/system/.../classes.jar has no sourece attachment.
Cause Analysis:
The JDK that comes with the system does not have a source package and needs to be downloaded from the Apple official website
Here's how to fix it:
3.1 Downloads Java Development Kit with source code
There are many other things in the Https://developer.apple.com/downloads/index.action development package below that are not covered here.
Sign in with your Apple ID, and the first sign-in is a hint to register, all the way down the line. To this page
Now the latest version of the development package is as follows: Java for OS X 2013-004 Developer packages, after download normal installation
Online to see a lot of blog introduction is to go to http://connect.apple.com download, but this address can not open, is estimated to be the previous download link, has expired.
3.2 Installation and configuration
Refer to the blog http://www.blogjava.net/lsbwahaha/archive/2012/10/16/389692.html perform the following steps
1.sudo-s
2.cd/system/library/frameworks/javavm.framework/home
3.ln-s/library/java/javavirtualmachines/1.6.0_35-b10-428.jdk/contents/home/docs.jar.
4.ln-s/library/java/javavirtualmachines/1.6.0_35-b10-428.jdk/contents/home/src.jar.
5. Finally, similar to Windows, use Command + click in Eclipse to view the source of a class. Then choose "Add Source" and select the Src.jar file above to
Note that the above version number should be modified according to the software version number on your machine. Actually press TAB to get out.
I succeeded in following this operation, but the above commands 3 and 4 do not think it is possible to do so, the source code interface added by eclipse, directly found to perform the soft connection of the original files can also, because these files all users have Read permissions.
This might be the case for putting the source code into the Java directory of the Mac OS itself.
Other than that
Run at terminal type Java can see Java is located in/usr/bin/java, is a soft connection
Java-/system/library/frameworks/javavm.framework/versions/current/commands/java
Settings for 3.3 java_home
Refer to this blog http://kennylee26.iteye.com/blog/1772638
4. Modify the source code that is bound in eclipse
If the Java version of the system and the source code are updated, at this time need to rebind the new version of the source code, how to do?
There is a similar scenario, when assigning source code to Android.jar, it is possible to choose the wrong API version of the source code, how to modify?
The method is as follows, attaching a piece, the steps are roughly as follows:
Open the Build Patch,libraries tab, find the Classes.jar, select it, and click Edit on the right to configure the page.
Mac Java Environment settings