1

I had installed latest Eclipse IDE with C/C++, installed SDCC and put the net.souurceforge.eclipsesdcc.1.0.0 plugin into the Eclipse Plugins & Features folder. When startup Eclipse, start to create a project using MC51 family (SDCC) with SDCC Tools Chain, click "Finish", it always come up with an error of java.lang.NullPointerException. I do the same thing on both Windows Vista and Windows XP machine, same problem.

Am I missing something on the setting?

Thank you so much in advance.

Martin

4

4 回答 4

3

插件无法找到特定于操作系统的程序 (sh.exe)。尝试将文件夹“os”从文件夹“net.sourceforge.eclipsesdcc.win32_1.0.0”复制到文件夹“net.sourceforge.eclipsesdcc_1.0.0”中。

于 2014-11-14T21:47:00.100 回答
3

上面的解决方案非常有帮助 - 谢谢大家!为了澄清,我必须使用 Alexander.P 和 Urgo 的答案才能在 Eclipse 中成功创建 MCS51 系列 (SDCC) 项目。这就是我所做的......

  1. 为 Windows 安装了 32 位版本的 Eclipse。

  2. 安装了 eclipseSDCC 插件。

  3. 将“os”文件夹从“Eclipse\plugins\net.sourceforge.eclipsesdcc.win32_1.0.0”复制到“Eclipse\plugins\net.sourceforge.eclipsesdcc_1.0.0”。

  4. 将项目设置为使用内部构建器:项目 -> 属性 -> C/C++ 构建 -> 构建器设置选项卡 -> 构建器类型 = 内部构建器。

于 2016-03-15T03:39:36.923 回答
1

我有同样的问题。我用这个文件解决了这个问题http://sourceforge.net/projects/eclipse-sdcc/files/Eclipse%203.1.x/eclipseSDCC-1.0.0/net.sourceforge.eclipsesdcc-1.0.0- win32.x86.zip/download © 认为这个问题是错误的平台选择。

于 2011-09-12T18:17:55.133 回答
1

尝试在 Windows 中使用 32 位版本的 Eclipse。这是唯一一个对我有用的让 SDCC Eclipse 插件工作的方法。对于 64 位版本,我会得到相同的 NullPointerException。

作为额外说明,一旦项目设置完成,我还需要在 Eclipse 中右键单击项目,然后转到 Properties -> C/C++ Build,然后转到“Builder Settings”选项卡并将“Builder type”更改为 Internal Builder .

于 2013-10-10T15:19:05.083 回答