1

I am new to eclipse plugin development and just encounter a strange issue when practicing in the article "Contribution to Eclipse" Chapter 7. The issue says "Can't find the Main class" and then hanging forever when I right click "Run Test" in the example class org.eclipse.contribution.junit.SampleTest. I did check that the class is already there. What I tried to find the problem are,

  • I create another hello word plugin project and it can be run successfully. Hence I don't think it is the Eclipse Environment issue like can't locate the main class.

  • I debug into the eclipse workbench, and the error occurred when step into class org.eclipse.jdt.internal.launching.StandardVMRunner below fragment

    IProcess process = DebugPlugin,newProcess(launch, p, renderProcessLabel(cmdLine), getDefaultProcessMap());

I am not sure what's going wrong. My develop environment is windows xp sp3, eclipse 2.1 and jre4. I know this environment is too old nowadays, but I'd like to setup it to keep the same as the article to reduce any other impacts.

If you faced this kind of issue or have any solutions, I will not feel alone and will be happy if you can share any ideas...

4

1 回答 1

0

那些应该工作。

IProcess process = DebugPlugin, new Process(launch, p, renderProcessLabel(cmdLine), getDefaultProcessMap());
于 2013-08-17T04:50:16.133 回答