The analysis of a Java application fails with the error : Java project initialization failed.Java features will not be supported.
If you click on any warning related to classpath,you will have a detailed view mentioning the classpath entry .But at that location the EnvProf may not exist.
Release | Yes/No |
---|---|
8.3.x | |
8.2.x | |
8.1.x | |
8.0.x | |
7.3.x |
RDBMS | Yes/No |
---|---|
Oracle Server | |
Microsoft SQL Server | |
CSS2 |
Below is the step-by-step scenario leading to the problem:
- Run analysis.
- Check in analysis log file.
The impact of the problem on the analysis or the dashboard is: Analysis will fail with the error "Java project initialization failed".Java features will not be supported. Impact of the solution on the analysis or the dashboard is:Analysis completes successfully.
The issue usually happens when the environment profiles are not deployed on the VM properly. It can be seen from the analysis logs that the environment profile was not found. The Environment profile that CAST analyzer looks for is defined in CastGlobalSettings.ini file (located in CAST installation folder) as the value of Common Program files path.
To fix the problem, proceed as follows:
- Check if the environment profile folder exists in that path.
- If not,copy the environment profile folders to that location.