Class files are not generated after either saving or rebuilding Java projects

Technote (troubleshooting)


Problem(Abstract)

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.

Cause

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:

  1. Move the source folder to the beginning of the build path.
  2. Remove the JAR file from the build path.
  3. 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.

Related information

Modification to the Java source is not being picked up.

Cross reference information
Segment Product Component Platform Version Edition
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

Historical Number

13421

Rate this page:

(0 users)Average rating

Document information


More support for:

WebSphere Studio Site Developer
IDE

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

Translate my page

Machine Translation

Content navigation