Tools - Empty JAVA

Purpose

This page provides information on the tool EmptyJava, which in a given folder spots any Java file that is fully commented, and replaces it with an empty file with file extension *.test

It is useful as such a fully commented file generates Fatal Error “Unable to process JSP analysis” in 7.3.x (x < 10)

Details

The file can be found here :  Empty JAVA.7z 

Steps :

  1. Choose the folder you suspect contains fully-commented files (see example below) :

    Figure 1

  2. Extract the tool, and open a CMD

  3. Run the tool using command-line :

Java -cp DeleteEmptyJavaFiles.jar com.tg.castsoftware.DeleteEmptyJavaFiles.DeleteEmptyFiles “source_path”

4. The tool will tell you if it processed some files :

   ![](https://doc-data.castsoftware.com/TG/attachments/566526197/566526196.png)Figure 2
5. The file was renamed Hello.java.test, so it will not be parsed by the analyzer : no more Fatal Error

![](https://doc-data.castsoftware.com/TG/attachments/566526197/566526199.png)Figure 3

**Notes/comments**

The issue with fully commented java files is solved in 7.3.10, 8.1 and 8.2

**Related Pages**