MyEclipse Right-click Run As there Eclipse Application solution

2010-03-20  来源:本站原创  分类:Java  人气:202 

Author: wasw100
Website: http://www.wasw100.com/java/myeclipse_run-as_eclipse-application.html

Wrote it myself, when a program is running, right-click the mouse into the Run As, the right side appeared Eclipse Application, always point wrong, open a new Eclipse, shown in Figure

--Run As
        --Eclipse Application   Alt+Shift+X, E
        --Java Application              Alt+Shift+X, J
        --OSGi Framework                Alt+Shift+X, O
        -------------------------------------------
        --Open Run Dialog...

The following is a solution:

Open your project location, use the Text tool (Notepad, UltraEdit, EditPlus, etc.) to open. Project file can be read as follows in

<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
        <name>rrdogpro</name>
        <comment></comment>
        <projects>
        </projects>
        <buildSpec>
                <buildCommand>
                        <name>org.eclipse.jdt.core.javabuilder</name>
                        <arguments>
                        </arguments>
                </buildCommand>
        </buildSpec>
        <natures>
                <nature>org.eclipse.jdt.core.javanature</nature>
        </natures>
</projectDescription>

That is, the extra <buildCommand> and <natures> removed, leaving only the two above, restart MyEclipse, then right-click Run As, Eclipse Application, OSGi Framework were gone.

-EOF -

相关文章