Having Trouble with Java on Your Mac?

本文介绍了一种在Mac上遇到的Java问题及其解决方案。作者在尝试运行Eclipse时遇到了与Java相关的问题,通过修复/System/Library/Frameworks/JavaVM.framework/Versions下的符号链接'Current'指向问题,最终解决了该问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

[url]http://mindsiview.wordpress.com/2009/07/15/having-trouble-with-java-on-your-mac/[/url]

I don’t know about you, but I’m constantly playing with (read messing up) my Mac loading new software, trying different things, etc. I spend a lot of time poking around in the BSD shell. After some recent mods, I began experiencing problems with Java…specifically related to Eclipse. I couldn’t get it to run. Instead, it returned “Cannot find executable for CFBundle … (not loaded)”.

After some fruitless searching and reinstalling Java, I found the problem. Somewhere along the way the symbolic folder “Current” (found under /System/Library/Frameworks/JavaVM.framework/Versions) was corrupted. Current should be pointing to the “A” folder (located in the same folder as Current). I used the following command to correct the problem:

[color=orange][b]sudo ln -fhsv A Current[/b][/color]

If you find yourself in a similar situation, and according to my own internet searches many of you have, check the symbolic folders “Current” and CurrentJDK. Chances are your problem is there.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值