1

I'm running Eclipse 4.2.1 on 64-bit Windows 7. I have the Eclipse CDT plugin installed and can make C/C++ projects. I have sdcc installed (get a response on CL with sdcc --version). I have downloaded this version of the plugin:

http://sourceforge.net/projects/eclipse-sdcc/files/latest/download?source=dlp

Unzipped, and put all the contents of the features and plugins folders in to my corresponding Eclipse install's features and plugins folders. (followed instructions from http://mihirknows.blogspot.com/2007/10/installing-sdcc-under-eclipse.html).

I restart Eclipse, go to File>New>C Project. Select MCS51 family (SDCC) under Project type and SDCC Tool Chain under Toolchains. Click next, leave Release and Debug selected, click Finish. Error Creating Project box pops up. Says Project cannot be created Reason: Internal Error: I click on the Details button and it says java.lang.NullPointer.Exception. (Would have included a screencap, but I no haz the reputation yet > _<)

I've also seen this post: Eclipse with SDCC plug in - always has an error of java.lang.NullPointerException They only suggest downloading the same zip I used.

4

2 回答 2

1

我遇到了同样的问题,Alexander.P 在Eclipse 中使用 SDCC 插件的答案 - 总是有 java.lang.NullPointerException 的错误对我有用。SDCC 3.4 和 Eclipse Luna 4.4.1。

于 2014-12-05T14:01:26.440 回答
0

嗯.. 我设法让 SDCC 在 Windows 7 32 位机器上运行。我建议您在未安装插件的 Eclipse 中创建一个新项目并通过源代码进行调试。这就是我所做的,所以我可以消除一些错误并让它运行。

编辑:您还必须将 sh.exe 替换为 Cygwin 使用的那个,因为当您开始构建时,SDCC 插件附带的 sh.exe 似乎崩溃了。

于 2013-07-29T05:44:23.560 回答