dongtingyue 2018-09-03 16:18 采纳率: 100%
浏览 2541
已采纳

用eclipse创建第一个JAVA项目怎么勾选JRE选项

一共有3个选项:
(1)使用执行环境JRE(V)
(2)使用特定于项目的JRE(S)
(3)使用缺省JRE(当前为“jdk-10.0.2”)(A)
选哪个呢?各有什么区别?
图片说明

  • 写回答

3条回答

  • _zming 2018-09-04 01:26
    关注

    不用纠结都可以,只要是你希望的jre版本就行
    Use an execution environment JRE:

    When selected, you can specify an execution environment to be used for the new Java project. The new project will use a compiler compliance which fits best the selected execution environment.
    
    Execution environments can be configured on the Java > Installed JREs > Execution Environmentspreference page.
        执行环境的jre是通过 Java > Installed JREs > Execution Environmentspreference配置的jre,一般就是全局的jre可以配置,使用自己安装的jre或使用eclipse默认自带的jre
    
         Use project specific JRE:
    
    When selected, you can explicitly specify the JRE to be used for the new Java project. The new project will use a compiler compliance which matches the version of the selected JRE.
        特定项目的jre只是针对当前项目,对当前项目的编译使用你所选的jre
    
    Use default JRE:
    
    When selected, the New Java Project Wizard creates a new Java project which uses the workspace default JRE. The default JRE can be configured on the Java > Installed JREs preference page.
    
    The project will also use the default compiler compliance which can be configured on the Java > Compiler preference page.
    
    Click on Configure default... to configure the default JRE and compiler compliance.
    

    默认工作空间级别使用的jre,可以通过 Java > Installed JREs配置

     以上三种jre来源都是可以指定的,自己下载一个jdk安装的系统通过eclipse配置指向你新装的jdk,默认的配置应该都是eclipse自带的jre
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(2条)

报告相同问题?

悬赏问题

  • ¥88 找成都本地经验丰富懂小程序开发的技术大咖
  • ¥15 如何处理复杂数据表格的除法运算
  • ¥15 如何用stc8h1k08的片子做485数据透传的功能?(关键词-串口)
  • ¥15 有兄弟姐妹会用word插图功能制作类似citespace的图片吗?
  • ¥200 uniapp长期运行卡死问题解决
  • ¥15 请教:如何用postman调用本地虚拟机区块链接上的合约?
  • ¥15 为什么使用javacv转封装rtsp为rtmp时出现如下问题:[h264 @ 000000004faf7500]no frame?
  • ¥15 乘性高斯噪声在深度学习网络中的应用
  • ¥15 关于docker部署flink集成hadoop的yarn,请教个问题 flink启动yarn-session.sh连不上hadoop,这个整了好几天一直不行,求帮忙看一下怎么解决
  • ¥15 深度学习根据CNN网络模型,搭建BP模型并训练MNIST数据集