Integrations (PTC products, 3rd party products and code) > Code integration (Ada, ARINC 653, C, C#, C++, IDL, Java, SQL and VB) > Java code > Reverse engineering legacy Java code > Troubleshooting > The reverser did not reverse engineer any code (Java code)
  
The reverser did not reverse engineer any code (Java code)
If you attempted to reverse engineer java files, but no items were created in the Model and no errors were reported, the problem may be caused by the specified Root Directory.
When you specify the Root Directory on the Select Model page, you must ensure that the directory does not include any of the source code package structure. If the root directory does include any of the source code package structure, the Reverser treats the java files you select for reverse engineering as unmapped files and does not reverse engineer them.
To resolve this problem, change the Root Directory so that it does not include any of the source code package structure.
Example
In this example, the C:\Work\JavaProj folder contains the java files of a java project. The Bar.java file resides in the C:\Work\JavaProj\com\foo folder and its code is as follows:
package com.foo;
public class Bar
{
// ...
}
You must set the Root Directory on the Select Model page to C:\Work\JavaProj.
If you set the Root Directory to C:\Work\JavaProj\com or C:\Work\JavaProj\com\foo, the Reverser will not reverse engineer any of the project's java files.