Troubleshooting an Imported or Upgraded Java Project

Problem: When you import or update a project with the Java Project Nature, the project does not display as expected in the WorkSpace Navigator.

Solution: The root project folder is being seen as the source folder, so resources in the folder are all being seen as Java packages.

To fix the problem:

  1. Right-click in the WorkSpace Navigator and select New > Folder.
  2. Select the project you imported or upgraded as the parent folder and name the folder src.
  3. Move the com folder into the new source folder, src.
  4. Select the project , right-click and select Properties.
  5. Select Java Build Path in the left pane.
  6. Click the Source tab in the right pane.
  7. Click Add Folder.
  8. Select the src folder you just created.
  9. Click OK.
  10. Click Yes when the popup dialog displays asking: Do you want to remove the project as source folder?
  11. Click OK.

    The WorkSpace Navigator now contains a src folder displaying packages as you would expect and non-source folders appear as normal folders.

Send your feedback on this help topic to Sybase Technical Publications: pubs@sybase.com

Your comments will be sent to the technical publications staff at Sybase, Inc. For product-related issues or technical support, contact Sybase Technical Support at 1-800-8SYBASE.