If you use eclipse, and if you have all configured fine:
1. check if in code happened some errors, eclipse hints it (red X icon near file icon).
2. remember check your java jdk files in project libraries.
If you have problems with java read forum topics, there is many about configuration and develop projects.