Java开发网 Java开发网
注册 | 登录 | 帮助 | 搜索 | 排行榜 | 发帖统计  

您没有登录

» Java开发网 » Java SE 综合讨论区  

按打印兼容模式打印这个话题 打印话题    把这个话题寄给朋友 寄给朋友    该主题的所有更新都将Email到你的邮箱 订阅主题
flat modethreaded modego to previous topicgo to next topicgo to back
作者 MyEclipse 设置 jdk 和 jre
jikiru11





发贴: 13
积分: 0
于 2007-09-20 23:15 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
找了很长时间 没找到,试了好长时间才搞清楚 ,和大家分享
我用的是 MyEclipse5.0 和 JDK1.4.2 、JRE1.5.0 .
1、设置JDK 在项目上点 右键 properties 找到 Java Compiler 右边出现窗口 。点击 Configure Workspace Settings 出现Complier 窗口。 设置如图 : 选择 JDK版本 Apply -> OK .
2、 回到 Java Compiler 窗口 点击 Restore Defaults -> OK 即可。那么你的这个 workspace 下的所有项目 就用的是 你设置的 JDK版本了 。如图 :



3、设置对应的 JRE : window -> preferences -> Installed JREs 如图 设置大家就明白了 :


这样MyEclipse 用的是 jdk1.4.2编译 。用的JRE1.5 了。



作者 Re:MyEclipse 设置 jdk 和 jre [Re:jikiru11]
JiafanZhou



版主


发贴: 736
积分: 61
于 2007-09-21 17:48 user profilesend a private message to usersend email to JiafanZhousearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
Is there a special reason for you doing this, using different version of JDK and JRE? If you develop your JAVA program in 1.4.2, then surely you shall provide the JRE1.4.2 to your customer.

Regards,
Jiafan



When I was a kid I used to pray every night for a new bike. Then I realized that The Lord doesn't work that way, so I stole one and asked him to forgive me.
作者 Re:MyEclipse 设置 jdk 和 jre [Re:jikiru11]
sunjianyuan





发贴: 1
积分: 0
于 2008-07-29 10:50 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
不错



flat modethreaded modego to previous topicgo to next topicgo to back
  已读帖子
  新的帖子
  被删除的帖子
Jump to the top of page

   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923