Java构建路径 [英] Java Build Path

查看:766
本文介绍了Java构建路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我打开Eclipse我有1 Java构建路径问题:
构建路径指定的执行环境的JavaSE-1.6。没有安装在工作区的JRE是与此环境严格兼容。

When I open eclipse I got 1 Java Build Path Problem: Build path specifies execution environment JavaSE-1.6. There are no JREs installed in the workspace that are strictly compatible with this environment.

现在我想翻翻答案和其他问题,但所有的答案都是基于对编程和这样的已经获得的知识。我刚开始前几天,请帮我解决这个问题,一步一步来。

Now I tried looking through the answers and other question, but all the answers are based on the already acquired knowledge about programming and such. I just started a few days ago so please help me fix this problem step by step.

谢谢您的关注。

推荐答案

您的问题是,Eclipse项目已经配置到系统库6版本。但是您似乎没有这个特定版本,因此,你需要重新配置项目的构建路径。

Your problem is that the Eclipse project is already configured to work on version 6 of the system libraries. You however do not seem to have this specific version, therefore you need to reconfigure the build path for the project.

为了改变你的JRE系统库,必须

In order to change your JRE System Library, you must


  1. 项目|属性

  2. 选择 Java构建路径部分

  3. 选择当前JRE系统库,并选择删除

  4. 选择添加库,并根据 JRE系统库类别挑选你的系统库;您可能只需要选择工作空间缺省JRE

  1. Go to Project|Properties
  2. Choose the Java Build Path section
  3. Select the current JRE System Library, and choose Remove
  4. Select Add Library, and under the JRE System Library category pick your system library; you probably just need to choose the Workspace default JRE

如果默认的JRE版本为< = 4,你最有可能将有建设项目的问题。在这种情况下,我建议你安装一个更新的JRE。

If the default JRE version is <= 4, you most likely will have problems building the project. In that case I suggest you install a more recent JRE.

更一般地,在窗口| preferences ,您可以检查的Java |安装的JRE |执行环境知道哪个已安装的JRE匹配特定的执行环境。应该是pretty清楚,但该页面神秘面纱事情有点。

More generally, under Window|Preferences, you can check Java|Installed JREs|Execution Environments to know which of the installed JREs match a specific execution environment. Should be pretty clear, but that page demystifies things a bit.

这篇关于Java构建路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆