简体   繁体   English

如何解决日食错误源未找到

[英]how to resolve eclipse error Source not found

I am getting "source not found" error in debug and run mode of eclipse (java). 我在Eclipse(java)的调试和运行模式下收到“找不到源”错误。 I have tried each and every solution but its not working. 我已经尝试了每个解决方案,但均无法正常工作。

Picture 1: 图片1:

在此处输入图片说明

Picture 2: 图片2

在此处输入图片说明

waiting for any kind of solution. 等待任何解决方案。 thanks in advance :) 提前致谢 :)

It's a native method, there is no source available. 这是一种本地方法,没有可用的源。

For Java code you can download sources usually, but for native code you can't really find it (well, you could use the openjdk source, but it's not Java code anymore, it's C or C++). 对于Java代码,您通常可以下载源代码,但是对于本机代码,您实际上找不到它(可以使用openjdk源代码,但是它不再是Java代码,它是C或C ++)。

you can not add source for native methods. 您不能为本机方法添加源。 if you want to add source of your java code click on 如果要添加Java代码的源,请单击

edit source lookup path -> java project -> your project 编辑源查找路径-> Java项目->您的项目

or 要么

right click on your project -> build path -> configure build path -> source -> here you can add your project folders as source 右键单击您的项目->构建路径->配置构建路径->源->在这里您可以将项目文件夹添加为源

You need to refresh the project. 您需要刷新项目。 Eclipse does not automatically pick up folders (or files) dropped into it's project directory. Eclipse不会自动拾取放置在其项目目录中的文件夹(或文件)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM