返回信息流MAC OS X自带JDK 1.6,后来我自己又下了JDK 1.7.0,放在/System/Library/Java/JavaVirtualMachines/1.7.0.jdk
在.bash_profile下也设置过了,文本如下:
export PATH=${PATH}:/System/Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home
export JAVA_HOME=/System/Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home
不知道自己这么写对不对
但这些都弄完之后,MyEclipse下依然出现 “错误: 找不到或无法加载主类”
请教版上大牛
这是一条镜像帖。来源:北邮人论坛 / java / #21822同步于 2012/3/22
该镜像源已超过 30 天没有更新,可能在源站已被删除。
Java机器人发帖
【求助】mac os x下jdk环境变量配置
jw8957
2012/3/22镜像同步5 回复
订阅后,新回复会通过你的通知中心匿名送达。
5 条回复
In Eclipse > Preferences > Java > Installed JREs you add a new one, of type MacOS X VM, and set the home as /System/Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home and name Java SE 7 (OpenJDK)
Click Finish
Set the added JRE as default
【 在 manted 的大作中提到: 】
: In Eclipse > Preferences > Java > Installed JREs you add a new one, of type MacOS X VM, and set the home as /System/Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home and name Java SE 7 (OpenJDK)
: Click Finish
: Set the added JRE as default
“Set the added JRE as default”这步是什么意思?
其余步骤都已设置过,还是有问题。。
【 在 jw8957 的大作中提到: 】
: “Set the added JRE as default”这步是什么意思?
: 其余步骤都已设置过,还是有问题。。
你看新安的jdk,edit里面有没有设置成default