0

我的 eclipse ide 很奇怪:即使在我修改后它也会抱怨一些源错误,我必须切断整个编译单元并再次粘贴回来。并且,我在截断一个源文件的时候,还要截两次:ctrl-A、ctrl-X(内容还在)、ctrl-A、ctrl-X、ctrl-V。这个问题发生在我的两个 linux 机器上。

我应该怎么做才能修复它?

补充

eclipse 版本:Indigo Service Release 2。

我的盒子:debian 挤压。

.类路径:

<?xml version="1.0" encoding="UTF-8"?>
<classpath>
    <classpathentry kind="src" output="class" path="source"/>
    <classpathentry kind="var" path="JRE_LIB" sourcepath="JRE_SRC"/>
    <classpathentry kind="con" path="/home/foo/big/build/class"/>
    <classpathentry kind="con" path="/home/foo/big/test/class"/>
    <classpathentry kind="lib" path="/home/foo/big/build/jar/big.jar"/>
    <classpathentry kind="lib" path="/home/foo/big/library/testng-6.3.jar"/>
    <classpathentry kind="output" path="bin"/>
</classpath>

。项目:

<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
    <name>big</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>
    <linkedResources>
        <link>
            <name>class</name>
            <type>2</type>
            <location>/home/foo/big/build/class</location>
        </link>
        <link>
            <name>source</name>
            <type>2</type>
            <location>/home/foo/big/source</location>
        </link>
    </linkedResources>
</projectDescription>
4

0 回答 0