在OS X上设置Intellij IDEA [英] Intellij IDEA setup on OS X

查看:124
本文介绍了在OS X上设置Intellij IDEA的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在OS X上配置Intellij IDEA的jdk和全局库源代码的接受程序和路径是什么?

的最新版本:




  • Java for Mac OS X 10.6 Update 3

  • Java for Mac OS X 10.5更新8



苹果已经改变了一些东西。



在java-dev邮件列表中引用Apple Java人员:
$ b



  1. 系统JVM处于/ System / Library /...




    • 这些JVM仅由Apple提供,并且只有1个主要
      平台版本。
    • 一个版本总是升级,并且只能由Apple Software Updates升级。

    • 它应该始终是GM版本,开发人员可以尽管有
      的开发者预览或他们已经安装的第三方
      的JVMs,它们还是会恢复。

    • 与/ System中的所有其他产品一样,它拥有b y root rx,所以不要乱用


  2. 开发者JVMs位于/ Library / Java下/ JavaVirtualMachines


    • $ / $>
    • 开发人员.jdk软件包包含所有开发者可能需要
      (src.jar,docs.jar等),但对于成千上万美元的b $ b Mac客户而言,它们的价值也是

    • 第三方JVM应该在这里安装。
      开发者使用JVM本身可以使用
      〜/ Library / Java / JavaVirtualMachines



      • 目录符号链接到您当前的构建产品很方便,而不会影响其他用户


    • Java IDE应该倾向于使用/ Library或〜/ Library检测
      JVM,但应该如果
      是唯一安装的(但是
      不包含e),则可以将
      备份到使用/ System / Library JVM xpect src或JavaDoc)。



    • 这允许Java开发人员最大限度灵活地安装
      多个版本的JVM来回归
      的错误,甚至在Mac
      本身上开发一个JVM。它还可确保所有
      Mac用户拥有一个安全,超薄,
      的JVM安全版本,并且我们
      不会无休止地占用他们的磁盘空间
      ,每次我们软件将它们更新为
      JVM。


因此,不要将Intellij指向/System/Library/Frameworks/JavaVM.framework,您应该在/ Library / Java / JavaVirtualMachines或/ System / Library / Java / JavaVirtualMachines中指向JDK

What's the accepted procedure and paths to configure jdk and global library source code for Intellij IDEA on OS X?

解决方案

As of the latest releases:

  • Java for Mac OS X 10.6 Update 3
  • Java for Mac OS X 10.5 Update 8

Apple has moved things around a bit.

To quote the Apple Java guy on the java-dev mailing list:

  1. System JVMs live under /System/Library/...

    • These JVMs are only provided by Apple, and there is only 1 major platform version at a time.
    • The one version is always upgraded, and only by Apple Software Updates.
    • It should always be GM version, that developers can revert back to, despite any developer previews or 3rd party JVMs they have installed.
    • Like everything else in /System, it's owned by root r-x, so don't mess with it!
  2. Developer JVMs live under /Library/Java/JavaVirtualMachines

    • Apple Java Developer Previews install under /Library.
    • The Developer .jdk bundles contain everything a developer could need (src.jar, docs.jar, etc), but are too big to ship to the tens of millions of Mac customers.
    • 3rd party JVMs should install here.
  3. Developers working on the JVM itself can use ~/Library/Java/JavaVirtualMachines

    • It's handy to symlink to your current build product from this directory, and not impact other users
  4. Java IDEs should probably bias to using /Library or ~/Library detected JVMs, but should be able to fallback to using /System/Library JVMs if that's the only one installed (but don't expect src or JavaDoc).

This allows Java developers the maximum flexibility to install multiple version of the JVM to regress bugs and even develop a JVM on the Mac themselves. It also ensures that all Mac customers have one safe, slim, secure version of the JVM, and that we don't endlessly eat their disk space every time we Software Update them a JVM.

So, instead of pointing Intellij at /System/Library/Frameworks/JavaVM.framework, you should point to a JDK in either /Library/Java/JavaVirtualMachines or /System/Library/Java/JavaVirtualMachines

这篇关于在OS X上设置Intellij IDEA的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆