Class files are not generated after either saving or rebuilding Java projects
After Java files (.java) are saved, the corresponding class files (.class) cannot be found anywhere in the workspace. Rebuilding the Java project does not compile the classes.
If .class files are found on the project classpath, the .java files are not compiled. This can happen if there is a JAR file in the project build path that contains a version of the .class files and that JAR file is ahead of the source folder in the build path, the compiler does not compile the .java files into the .class files.
Resolving the problem
To compile the classes in the workspace you can do one of the following:
- Move the source folder to the beginning of the build path.
- Remove the JAR file from the build path.
- Remove the duplicate class files from the jar file. You can do this with a zip file utility program.
Each project can have its own classpath which you can set by selecting Project > Properties > Java Build Path. For an individual class, the path is set in the run configuration by selecting Run... and changing the Classpath setting.
|Business Integration||WebSphere Studio Application Developer||IDE||Linux, Windows||4.0, 4.02, 4.03, 5.0, 5.0.1, 5.1, 5.1.1||All Editions|
|Business Integration||WebSphere Studio Application Developer Integration Edition||IDE||Windows, Linux||4.1, 4.1.1, 5.0, 5.0.1||All Editions|
|Business Integration||WebSphere Studio Enterprise Developer||IDE||Linux/390, Windows||5.0, 5.0.1||All Editions|
|Business Integration||WebSphere Development Studio Client for iSeries||IDE||Multi-Platform||4.0, 5.0, 5.1||All Editions|
More support for:
WebSphere Studio Site Developer
Software version: 5.0, 5.0.1, 5.1, 5.1.1
Operating system(s): Linux, Windows
Software edition: All Editions
Reference #: 1054271
Modified date: 2012-02-06