English 中文(简体)
为什么OS Xjava总会报告1.6?
原标题:Why does OS X java always report 1.6?

任何人都这样做?

我认识到,1.6是第十代办的缺省,但Im试图用1.5来汇编/管理一条关于指挥线的方案。 然而,无论我所尝试的是什么,它都报告1.6。

/System/Library/Frameworks/JavaVM.framework/Versions/1.5/Home/bin/java -version
java version "1.6.0_20"
Java(TM) SE Runtime Environment (build 1.6.0_20-b02-279-10M3065)
Java HotSpot(TM) 64-Bit Server VM (build 16.3-b01-279, mixed mode)
rtp-wwilliam-8712:bin wwilliam$ 

请注意通往java binary的全部道路。 不管前几版Java I试图做什么,我总是收到1.6份作为版本的报告。

这条道路确实存在 j。 这一名录也是我道路上的第一个名录。

利用第10.6.3号行政指示,安装了最新的java数据。

想法?

最佳回答

由于10.6,1.5(在贾瓦勒框架中)与1.6有着密切的联系。 5. 第十组:

$ ll /System/Library/Frameworks/JavaVM.framework/Versions/
total 64
lrwxr-xr-x  1 root  wheel     5B May 19 12:17 1.3@ -> 1.3.1
drwxr-xr-x  3 root  wheel   102B Dec  2 20:55 1.3.1/
lrwxr-xr-x  1 root  wheel    10B May 19 12:17 1.4@ -> CurrentJDK
lrwxr-xr-x  1 root  wheel    10B May 19 12:17 1.4.2@ -> CurrentJDK
lrwxr-xr-x  1 root  wheel    10B May 19 12:17 1.5@ -> CurrentJDK
lrwxr-xr-x  1 root  wheel    10B May 19 12:17 1.5.0@ -> CurrentJDK
lrwxr-xr-x  1 root  wheel     5B May 19 12:17 1.6@ -> 1.6.0
drwxr-xr-x  8 root  wheel   272B May 19 17:56 1.6.0/
drwxr-xr-x  9 root  wheel   306B May 19 17:56 A/
lrwxr-xr-x  1 root  wheel     1B May 19 12:17 Current@ -> A
lrwxr-xr-x  1 root  wheel     3B May 19 12:17 CurrentJDK@ -> 1.6
问题回答

暂无回答




相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签