Java package does not exist

I am starting to work on an old project and am now struggling with launching it on my computer. I imported it yesterday, and everything worked fine, the project was really under construction, and everyone was happy. Then I had to install some additional software and had problems with java jdk and jre paths, but I managed to finish this task, and I returned to creating the project, and I could not do it. I did not change a single file in the project, nor any configuration of the project (I use eclipse and do not build using ant), only changes in the system environment were made. It also builds in the environment of other team members, so this is not the code itself.

The error message appears as follows:

[javac] C:\Users\bilskluc\virtualdisk\blah\xyz\packages\radius\src\com\blah\wfc\radiusinput\RadiusHostEntry.java:9: package com.blah.devkit.exception does not exist
[javac] import com.blah.devkit.exception.DRException;
[javac]                                         ^
[javac] C:\Users\bilskluc\virtualdisk\blah\xyz\packages\radius\src\com\blah\wfc\radiusinput\RadiusHostEntry.java:10: package com.blah.devkit.storable does not exist
[javac] import com.blah.devkit.storable.DRAbstractStorable;
[javac]                                        ^

etc. It looks exactly the same in eclipse when I run it from the console. Used ant packages are imported along with the project and are explicitly specified, also the most important env variables are set from the configuration file before starting the assembly, and the configuration file is not changed.

The packages and classes mentioned are in the .jar file included in the project.

Has anyone had a similar problem? I checked everything I could think of. To reduce the risk that I changed something, I deleted all the code and downloaded it again from svn (and checked that there were no commits in the last few days).

Maybe someone has an idea where I should look for some system configuration changes that might cause this problem.

EDIT

these two libraries are mentioned in the .classpath file

<classpathentry kind="lib" path="blah/lib/devkit.jar">
    <attributes>
        <attribute name="javadoc_location" value="jar:platform:/resource/MZ-package-radius/blah/lib/devkit_javadoc.jar!/javadoc"/>
    </attributes>
</classpathentry>
<classpathentry kind="lib" path="blah/lib/picostart.jar"/>

ant , ,

+5
3

, , ANT script:

<path id="compile.classpath">
    ...
</path>

, ANT script, - :

<property name="myclasspath" refid="compile.classpath"/>
  <echo message="Classpath = ${myclasspath}"/>
+4

, . "lib". , "libs", Eclipse, Ant (android update project --path .), . , "libs" , :

0

You can put your jars in the build / jar / folder, and then use this path:

<path id="mypath">
    <fileset dir="build/lib">
      <include name="*.jar" />
    </fileset>
</path>
0
source

All Articles