I have build automatically turned off and I want to build only one class (for debugging). Is this possible? Other classes are already compiled in the build directory, but they might not compile under Eclipse.
In Java, you need to have a method named main in at least one class.
Each Java source file contains a single public class or interface. When private classes and interfaces are associated with a public class, you can put them in the same source file as the public class. The public class should be the first class or interface in the file.
Compile a single file or classOpen the needed file in the editor and from the main menu, select Build | Recompile 'class name' ( Ctrl+Shift+F9 ). Alternatively, in the Project tool window, right-click the class you need and from the context menu, select Recompile 'class name'.
I think you can by going to the Project menu and selecting Build Working Set -> Select Working Set.
Select new, give your set a name then select only the single class you want to build. Once done it should build.
Next time you want to build, goto the Project menu and select Build Working Set -> and the name of the set you created.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With