Java eclipse中未找到JRE系统库异常
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/4242641/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
JRE system library not found exception in eclipse
提问by Mohan
Dear All, I am eclipse3.1 IDE for java under fedora 8 environment. I installed fresh copy of eclipse and trying to run a program,it shows JRE system library not found exception popup. I added this library manually by BuildPath-----> Add external library but still i am getting that popup. How to solve this problem.
亲爱的大家,我是fedora 8环境下的java eclipse3.1 IDE。我安装了 eclipse 的新副本并尝试运行一个程序,它显示 JRE 系统库未找到异常弹出窗口。我通过 BuildPath-----> Add external library 手动添加了这个库,但我仍然得到那个弹出窗口。如何解决这个问题呢。
采纳答案by Kane
Go to Window- Preference- Java- Installed JREspage to specify the location of your jre or JDK.
转至Window- Preference- Java- Installed JREs页面以指定 jre 或 JDK 的位置。
回答by Jason Rogers
I'm no expert but maybe try checking in Java Build Path that your lib appears in the Libraries tab and that in "Order and Export" tab it is checked
我不是专家,但也许可以尝试检查您的库出现在库选项卡中的 Java 构建路径,并在“订购和导出”选项卡中检查它
otherwise have you tried refreshing cleaning and rebuilding?(sometimes eclipse is a bit slow in detecting changes
否则你有没有尝试过刷新清理和重建?(有时 eclipse 在检测变化时有点慢
final check that the path of the library is the good one (it happened when I committed a project to the svn and used it on a different computer, everything was there but since the computers had different names (C:\jason... and C:\jasonlaptop...) it wasn't working.
最后检查库的路径是否正确(当我将一个项目提交到 svn 并在另一台计算机上使用它时发生了这种情况,一切都在那里,但是由于计算机具有不同的名称(C:\ jason ...和C:\jasonlaptop...) 它不起作用。
let me know if it changed anything
让我知道它是否改变了什么
回答by Tharush
Go to Project > Properties >Java Build Path > Libraries > Add Library > Next > Just FinishThis is work for me
转到Project > Properties >Java Build Path > Libraries > Add Library > Next > Just Finish这对我有用