Blog Archives
1 … 19 20 21 22 23 24 25 26 27 … 30

Creating a simple Java Web project with Maven – part 1

Java beginners to create a simple web application (i.e. a Web ARchive file — i.e. a war file). Prerequisite is that you have set up Java, Maven, and Eclipse.

 Step 1: Execute the Maven maven-archetype-webapp command to create the Maven web structure with the following command on a DOS command prompt.

…

Read more ›



Creating a simple Java Web project with Maven – part 2 (Understanding war and pom.xml )

“Creating a simple Java Web project with Maven – part 1” covered developing a simple Java web application using Maven. This part is all about understanding the war and pom files. 1. The lib directory Q. … Read more ›...

This content is for 30-Day-Full-Access, 100-Day-Full-Access, 200-Day-Full-Access, and 365-Day-Full-Access members only. Register 80+ Free Java FAQs 80+ Free Big Data FAQs
Already a member? Log in here


Creating a simple Java Web project with Maven – part 3 (with eclipse & m2e plugin)

“Creating a simple Java Web project with Maven – part 1” covered developing a simple Java web application using Maven. “Creating a simple Java Web project with Maven – part 2 (Understanding war and pom.xml)” elaborated on war and pom.xml. … Read more ›...

This content is for 30-Day-Full-Access, 100-Day-Full-Access, 200-Day-Full-Access, and 365-Day-Full-Access members only. Register 80+ Free Java FAQs 80+ Free Big Data FAQs
Already a member? Log in here


Debugging like a pro with eclipse IDE tutorial for Java developers

Often you get to work on a fully functional Java application that is already in production to fix production issues or to enhance its existing functionality. As a new Java developer in the team, it is not easy to get started and contributing. The approach would be slightly different from working on a brand new project.

…

Read more ›



Debugging Maven issues and tips

Debugging Maven issues and tips. At times maven can cause issues relating to jar conflicts or not having the required jar file in the repository.

Q. In your experience, what are some of the challenges you faced with maven, and how do you over come them?

…

Read more ›



DOS script to execute a spring batch job

DOS scripts are very handy to automate tasks. This example illustrates a DOS script used to bootstrap a Spring batch job.

1) DOS variables are marked as %VARIABLE_NAME%

2) Remarks or comments are prefixed with REM

3) variables are assigned with “

…

Read more ›



Dozer bean mapping tutorial

Dozer is a framework that maps fields from source bean to target bean.

Practical scenarios to map source bean to target bean?

1) Applications A and B might be having different contracts and objects need to be converted from A to B. For example, Mapping JAXB Objects to Business/Domain Objects.

…

Read more ›



Dozer with Spring & Maven Tutorial

This tutorial compliments Basic Dozer Tutorial by adding Spring.

Step 1: Create a simple Maven project from a command-line. Just press enter for all the prompts.

Step 2: Import the above “simple-dozer” folder in the file system into eclipse.

…

Read more ›



Eclipse IDE tutorial diagnosis and tips for the beginners

This assumes that you have gone through “Setting up Java, Maven, and Eclipse”

#1. Creating the source folder like src/main/java, src/main/resource, etc via eclipse IDE

To create a new source folder under src/main/, right mouse click on project say “simple”.

eclipse-diagnosis-tut-1

eclipse-diagnosis-tut-2
click on finish.

…

Read more ›



Exposing a Java class as a MXBean (or MBean) tutorial with jconsole

You can take a Java POJO (i.e. Plain Old Java Object) and expose it as an MBean, and view or modify values via JMX. In this tutorial, we will use jconsole, which is a JMX client. Step 1: Create a new Maven based Java project.

Step 2: Import it...

This content is for 30-Day-Full-Access, 100-Day-Full-Access, 200-Day-Full-Access, and 365-Day-Full-Access members only. Register 80+ Free Java FAQs 80+ Free Big Data FAQs
Already a member? Log in here


Findbugs and Maven tutorial

Findbugs is an open source project for a static analysis of the Java bytecode to identify potential software bugs.

Findbugs-structure

Step 1: The pom.xml with the findbug & site reporting plugins and properties.

Step 2: Exclude certain classes with an exclude filter

src/main/resources/findbugs/excludeFilter.xml

Step 3: Running mvn command to spot bugs

Step 4: Running mvn command to report bugs

this creates the file “findbugs.html”

…

Read more ›



Finding your way around the FIX specification Q&A

Firstly, decide on the specification version. If you are using FIX spec 4.4 then go to https://fixspec.com/FIX44. The tutorials with QuickFIX/J used NewSingleOrder as the request. The message has the fields like Tag number. … Read more ›...

This content is for 30-Day-Full-Access, 100-Day-Full-Access, 200-Day-Full-Access, and 365-Day-Full-Access members only. Register 80+ Free Java FAQs 80+ Free Big Data FAQs
Already a member? Log in here


FIX and Java tutorial with QuickFIXj

QuickFixJ is a FIX (Financial Information eXchange) engine for Java. Handy to have knowledge on FIX protocol if you aspire to work for investment banks and other financial services companies. FIX router and FIX engines are depicted below. Step 1: Create a new Maven based Java project. … Read more...

This content is for 30-Day-Full-Access, 100-Day-Full-Access, 200-Day-Full-Access, and 365-Day-Full-Access members only. Register 80+ Free Java FAQs 80+ Free Big Data FAQs
Already a member? Log in here


1 … 19 20 21 22 23 24 25 26 27 … 30

300+ Java Interview Questions - FAQs

Tutorials on Java & Big Data