解释Mac OSX Leopard上的JVM目录布局 [英] Explain the JVM Directory Layout on Mac OSX Leopard
问题描述
这是与Leopard一起安装的目录布局.什么是"A"目录?为什么除了"CurrentJDK"之外还有当前"目录?
Here is the directory layout that was installed with Leopard. What is the "A" directory and why the "Current" directory in addition to the "CurrentJDK"?
您似乎可以通过移动CurrentJDK链接轻松切换当前JDK,但是Current和A下的内容将不同步.
It seems like you can easily switch the current JDK by move the CurrentJDK link, but then the contents under Current and A will be out of sync.
lrwxr-xr-x 1 root wheel 5 Jun 14 15:49 1.3 -> 1.3.1
drwxr-xr-x 3 root wheel 102 Jan 14 2008 1.3.1
lrwxr-xr-x 1 root wheel 5 Feb 21 2008 1.4 -> 1.4.2
lrwxr-xr-x 1 root wheel 3 Jun 14 15:49 1.4.1 -> 1.4
drwxr-xr-x 8 root wheel 272 Feb 21 2008 1.4.2
lrwxr-xr-x 1 root wheel 5 Feb 21 2008 1.5 -> 1.5.0
drwxr-xr-x 8 root wheel 272 Feb 21 2008 1.5.0
lrwxr-xr-x 1 root wheel 5 Jun 14 15:49 1.6 -> 1.6.0
drwxr-xr-x 8 root wheel 272 Jun 14 15:49 1.6.0
drwxr-xr-x 8 root wheel 272 Jun 14 15:49 A
lrwxr-xr-x 1 root wheel 1 Jun 14 15:49 Current -> A
lrwxr-xr-x 1 root wheel 3 Jun 14 15:49 CurrentJDK -> 1.5
steve-mbp /System/Library/Frameworks/JavaVM.framework/Versions $
和A的内容
-rw-r--r-- 1 root wheel 1925 Feb 29 2008 CodeResources
drwxr-xr-x 34 root wheel 1156 Jun 14 15:49 Commands
drwxr-xr-x 3 root wheel 102 Mar 6 2008 Frameworks
drwxr-xr-x 16 root wheel 544 Jun 14 15:49 Headers
-rwxr-xr-x 1 root wheel 236080 Feb 29 2008 JavaVM
drwxr-xr-x 29 root wheel 986 Jun 14 15:49 Resources
steve-mbp /System/Library/Frameworks/JavaVM.framework/Versions/A $
推荐答案
(A
,Current
符号链接到A
的符号)是Mac OS X框架结构的一部分,该框架JavaVM.framework
是.除了实际的JVM安装之外,此框架中可能还包含C或Objective-C代码.因此,除了包含JVM之外,它还可能与某些C或Objective-C代码链接.
The (A
, Current
symbolic-linked to A
) is part of the structure of a Mac OS X framework, which JavaVM.framework
is. This framework may have C or Objective-C code in it, in addition to the actual JVM installations. Thus it could potentially be linked against from some C or Objective-C code in addition to containing the JVM alongside that.
请注意,您不应将CurrentJDK
链接更改为指向除Mac OS X设置之外的任何内容.与其他平台不同,Java虚拟机是一种操作系统服务.在Mac OS X上,以这种方式进行更改会导致您处于不受支持(可能未经测试,不稳定等)的配置中.
Note that you should not change the CurrentJDK
link to point at anything but what it is set to by Mac OS X. Unlike on other platforms, the Java virtual machine is an operating system service on Mac OS X, and changing it in this way would put you in an unsupported (and potentially untested, unstable, etc.) configuration.
这篇关于解释Mac OSX Leopard上的JVM目录布局的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!