Chinaunix首页 | 论坛 | 博客
  • 博客访问: 296466
  • 博文数量: 69
  • 博客积分: 3093
  • 博客等级: 中校
  • 技术积分: 626
  • 用 户 组: 普通用户
  • 注册时间: 2009-08-17 13:48
文章分类

全部博文(69)

文章存档

2011年(27)

2010年(11)

2009年(31)

分类: 系统运维

2011-04-22 17:39:39

== Snow Leopard Java problems (and fix) ==
 
=Snow Leopard Java problems (and fix)=

'''Update: OneSwarm 0.6.7 is now available and fixes most Snow Leopard compatibility issues. Download [ here]'''

The [ OneSwarm] annonymous filesharing client version 0.6.5 does not run properly on Mac OS X 10.6 "Snow Leopard" because of compatibility issues between the 64 bit Java 6 VM and SWT, symptoms are: 
*Connections will never handshake completely because packets sent by the user running 10.6 will not reach the network interface (except the initial ~20 byte handshake packet). Probable cause: not receiving write selects (?). '''Workaround below'''
*When double clicking on a torrent a window will pop up saying "file could not be opened".
*In the classic ui: Preferences will not show the values of the actual preferences, clicking in the box will cause the value to be shown.

==Workaround for connection problem==
In the terminal:

Get the java 5 that was included in 10.5 "leopard" and unpack
 cd /tmp/
 curl -o java.1.5.0-leopard.tar.gz
 tar -xvzf java.1.5.0-leopard.tar.gz

Move it to your System java folder (password needed)
 sudo mv 1.5.0 /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0-leopard


Tell OS X that java 5 actually is java 5
 cd /System/Library/Frameworks/JavaVM.framework/Versions/
 sudo rm 1.5.0
 sudo ln -s 1.5.0-leopard 1.5.0
 sudo rm 1.5
 sudo ln -s 1.5.0 1.5

Open Java Preferences
 open "/Applications/Utilities/Java Preferences.app"

Change the properties to use Java 5 32-bit by default:
[[image:OS_X_10.6_snow_leopard_OneSwarm_workaround.png|400px|center]]

Done!

==Also fixes==
This workaround fixes issues in other apps as well,
*Enables Google Web Toolkit (GWT) hosted mode (fixes the "can not run on OS X with Java 6 bug")
*Azureus (Vuze) download issue described here:
Fonality's HUD3 works after running these steps.
*Zend Studio versions 5.*: fixes problems with disappearing text while selecting.

===Java 1.4===
In case your system depended on java 1.4: Here is how to get Java 1.4 running on snow leopard.
 cd /tmp/
 curl -o java.1.4.2-leopard.tar.gz
 tar -xvzf java.1.4.2-leopard.tar.gz
 sudo mv 1.4.2 /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2-leopard
 cd /System/Library/Frameworks/JavaVM.framework/Versions/
 sudo ln -s 1.4.2-leopard 1.4.2
 sudo ln -s 1.4.2 1.4
 open "/Applications/Utilities/Java Preferences.app"

[[]]

阅读(6396) | 评论(0) | 转发(0) |
0

上一篇:mac os 切换 32位 jdk

下一篇:没有了

给主人留下些什么吧!~~