Thursday, June 5, 2014

Several ways to manage windows on OS X

1. Switch between different active windows of same application
Command-` (grave accent)

2. Minimize current window
Command-M

3. Enter and exit full screen
Command-Control-F

4. Close window
Command-W
or
Command-Q (always really quit application except Finder)

5. Hide other applications' window and keep focus window
Command-Option-H

6. Hide focus window
Command-H

7. Switch between different windows
Four fingers slide from bottom to top on touchpad and select the one you need.

How to cut and paste file or folder by shortcut on OS X?

Heard this operation is disabled on OS X. But we have another option, copy first then paste and delete.

1. Command + C
2. Command + Option + V

Wednesday, June 4, 2014

Set JAVA_HOME on OS X

Add on line in  ~/.profile


export JAVA_HOME=$(/usr/libexec/java_home)

Save and quit.

** "/usr/libexec/java_home" points to Java home which is being used now if there are multiple JDKs installed.

Eclipse can't open on OS X

Double-click eclipse icon but it is prohibited.
Because it's limited by Security & Privacy in System Preference. Select to use: Anywhere on Allow apps downloaded from.

Tuesday, June 3, 2014

Install JDK on OS X 10.9.3 (or above?)

1. Go to oracle web site to download the OS X dedicated installer, e.g. jdk-7u60-macosx-x64.dmg.
2. Double click and follow the prompts to install.

Note: There is one point needs to clarify. Some posts and oracle official installation instructions mentions you need to go to Applications -> Utilities -> Java Preferences and do certain operations. It seems no need do anything on it now because JDK is not pre-installed on OS X 10.9.x or above anymore, and you even can't find Java Preference in Utilities folder. The Java control panel is now at System Preference.

Open terminal and type java -version
...Now can start working.