Configure and build apache wicket without maven. A hello world example.

In my earlier tutorial, we have seen how to build a sample  wicket application with the help of mavan. In this tutorial, let us see how to configure and create a apache wicket hello world application in eclipse without using maven in easy steps

Tools used in this tutorial to configure apache-wicket project

1. Apache Wicket 6.16
2. Java : Java 1.6 or above
3. Eclipse with Apache server

Minimum Jars required used in this tutorial for starting this simple wicket project.

1. log4j-1.2.16.jar
2. slf4j-api-1.6.4.jar
3. slf4j-log4j12-1.6.4.jar
4. wicket-core-6.16.0.jar
5. wicket-request-6.16.0.jar
6. wicket-util-6.16.0.jar

#Your project may require more wicket jars depending upon your requirement to do more tasks.

Apache Wicket 6.16.0 can be downloaded from the apache site Unzip the downloaded

Step 1: Open eclipse and create a dynamic web project using File->New->Dynamic Web Project
give the project name WicketTest and then click next…and finish

The initial directory structure in the eclipse will be as given below

wicket eclipse structure

Step 2: Get all the jars mentioned above from the unzipped folder and copy to the WEB-INF\lib folder…

Step 3: Replace the web.xml file located in the folder (\WEB-INF) with the below web.xml file.


The above web.xml is configured for the filter class (org.apache.wicket.protocol.http.WicketFilter) of any wicket application

Step 4 : Create Sample Java class and html files using wicket which are given below.



Step 5: Put all the above files under src\com\javaonline

Note :html file name should be same as the java file name.

Step 6: Include the src folder (WicketTest\src) in the class path.

Final directory structure of the web application created in this tutorial is given below.

wicket eclipse complete structure

Now run the project and get the below output

wicket home


Click on the link Hello World, you will get the below output page.

wicket second page


Wicket start

wicket link


You may also like

Leave a Reply