Run IntelliJ IDEA in Mac10.9 and JDK7 Environments

Source: Internet
Author: User

Run IntelliJ IDEA in Mac10.9 and JDK7 Environments

After upgrading to Mavericks, you must install the JDK environment on your own. If you have installed JDK 7, it is okay to run the javac and java commands in the command line after installation, but neither Eclipse nor IDEA can be started. The system requires the installation of JDK 6.

Follow these steps:

  • Find/Library/Java/JavaVirtualMachines/jdk1.7.0 _ XX. jdk/Contents/Info. plist and add the following four strings.

      <key>JVMCapabilities</key>  <array>      <string>CommandLine</string>      <string>JNI</string>          <string>BundledApp</string>        <string>WebStart</string>        <string>Applets</string>  </array>
  • Find/Applications/IntelliJ idea xxx. app/Contents/Info. plist file. Modify JVMVersion from 1.6 * to 1.7 *.

      <key>JVMVersion</key>  <string>1.7*</string>
  • Start IDEA12 and select the JDK Home as follows.

      File - Project Structure - Project - New - JDK
  • If it is Eclipse, the first step can be started normally. If it is IDEA, you need to complete all three steps.

Mvn-v error

# Mvn-v

Error: JAVA_HOME is not defined correctly.  We cannot execute /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home/bin/java

# Vim/etc/profile

export JAVA_HOME=`/usr/libexec/java_home -v 1.7`export PATH=$JAVA_HOME/bin:$PATH    

# Source/etc/profile

IntelliJ IDEA: Adding fonts to anti-aliased

IntelliJ IDEA 12 create a Web project graphic tutorial

Graphic tutorial for Android program development using IntelliJ IDEA

IntelliJ IDEA 12 haXe NME application Configuration Guide

IntelliJ IDEA test mode for running the Play Framework

Install IntelliJ IDEA 12 on Ubuntu 13.04

IntelliJ IDEA 12 create a Java Web project managed by Maven (illustration)

IntelliJ IDEA details: click here
IntelliJ IDEA: click here

This article permanently updates the link address:

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.