作者Baudelaire (风雨故人胡不归。)
看板MacDev
标题Re: [情报] J2SE 5.0 Release 1 for Tiger
时间Sat May 7 02:01:55 2005
※ 引述《markers (马克尔斯)》之铭言:
: 刚刚只透过说明网页中所说的
: f you want to change the default Java version for
: applications and applets, use the new Java Preferences utility
: that is installed by the J2SE 5.0 update at
: /Applications/Utilities/Java/J2SE 5.0/.
: 去设定预设的JRE~
: 一度以为并没有实际的JDk被好好的安装上去~
: 後来查了 java -version
: 看到其实还是1.4.2的版本~
: 不过再去check了一下JAVA的目录:
: /System/Library/Frameworks/JavaVM.framework/Versions/
: 发现是有1.5.0的资料夹和里面的Commands~
: /System/Library/Frameworks/JavaVM.framework/Versions/
: 1.5.0/Commands/java -version
: 得到:
: Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_02-56)
: Java HotSpot(TM) Client VM (build 1.5.0_02-36, mixed mode, sharing)
: 测试的新printf method也可以正确编译了!~
: 不过指定java 5.0的 commands比较麻烦.... >""<~
: 有需要的话恐怕还是要修改系统的path...
: 现阶段应该不会太快有完全取代1.4.2的系统环境出现...
: enjoy it !
我最近把用J2SE 5.0一些新语法的程式放到PowerBook上跑,
灌好JBuilder 2005以後发现找不到相容的SDK;
用大哥说的/System/Library/Frameworks/JavaVM.framework/Versions/,
放不进JBuilder的JDK里面,看来还是先不要乱玩新版的SDK,
乖乖的用1.4.2工作一阵子再说...。
---
其实我只是想用String.contains()而已啊...。
1.5多了好多更直觉的method,不然我还得用regex去写... :P
--
This reconciliation with Hitler reveals the profound
moral perversity of a world that rests essentially on the
non-existence of return,for in this world everythin' is
pardoned in advance and therefore everything cynically permitted.
<< The Unbearable Lightness of Being>>
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 70.19.62.235