Eclipse

Generate XSD from JAXB Java Classes using Eclipse

Learn to create XML schema document (xsd) from JAXB annotated Java classes using Eclipse IDE. 1) Add JAXB Annotations to Java Classes First step is to add annotations such as @XmlRootElement, @XmlAccessorType and @XmlElement etc. to your Java classes. 2) Generate XSD from JAXB Classes 2.1) Navigate to Eclipse Option 2.2) Select location for generated …

JUnit 5 Test Templates for Eclipse

Eclipse has great tooling support for JUnit test cases. Having code templates for JUnit test cases configured in Eclipse is a great addition in faster test development. Learn to create and import JUnit 5 test templates in eclipse.

Setting Up TestNG in Eclipse

Learn about TestNG features, installing the TestNG plugin into Eclipse and writing and executing TestNG tests through Eclipse IDE.

Create Maven Web Application and Import into Eclipse

Learn to create a Maven web project in Eclipse, which we should be able to import into the Eclipse IDE for further development. To create an Eclipse-supported web project, we will need to create a normal Maven web application and then make it compatible with the Eclipse IDE. Step 1: …

Unreachable Code in Java: Errors, Dead Code and Fixes

Unreachable code is a compile error in Java, whereas dead code compiles and never runs. The JLS rule behind the if (true) vs while (true) puzzle, the statements that cause the error, conditional compilation and fixes.

About Us

HowToDoInJava provides tutorials and how-to guides on Java and related technologies.

It also shares the best practices, algorithms & solutions and frequently asked interview questions.