Follow me on twitter

vogella.de

Java Tutorials

Introduction

Testing and Code Quality Tools

Libraries and Tools

Design Patterns

Other Languages

SAP

Divers

Draft


Introduction to Java Programming      [To Top]

This article explains the Java programming language, create a few small programs, discuss Java design principles and describes a few common solutions to commons problems. It also contains "Cheat Sheets" with examples for standard tasks during programming.

This article contains lots of exercises. The solutions for these exercises are available under http://www.vogella.de/code.html .

This article does not cover the installation of the Java Development Kit (JDK).

Browse Document      View Document (complete)


Java and XML - Tutorial      [To Top]

This article give an introduction to XML and its usage with Java. The Java Streaming API for XML (Stax), JAXB 2 and the Java XPath library are explained and demonstrated.

This article is based on Java 6.0.

Browse Document      View Document (complete)


Java Logging API - Tutorial      [To Top]

This article describes how to use the Logging API in Java programs. It includes an example for creating a HTML logger.

Browse Document      View Document (complete)


Java Performance - Memory and Runtime Analysis - Tutorial      [To Top]

This article will be a collection of Java performance measurement pointer.

It describes how memory works in general and how Java use the heap and the stack. The article describes how to set the available memory for Java. It discusses then how to get the runtime and the memory consumption of a Java application.

Browse Document      View Document (complete)


A Java Preferences API Tutorial      [To Top]

This article gives a introduction into the Java Preference API which is available since Java 1.4. The Java Preferences API provides a systematic way to handle user and system preference and configuration data, e.g. to save user settings, remember the last value of a field etc. Information saves with the Java Preference API is stored on the local machine of the user and is available to be re-used in the program, e.g. after a restart of the program.

This Java Preferences API is not indented to save application data.

The Java Preference API removes the burden from the individual programmer to write code to save configuration values on the different platforms his program may be running.

Browse Document      View Document (complete)


Java and Regular Expressions - Tutorial      [To Top]

This article gives an overview of the usage of regular expressions in general and describes the usage of regular expressions with Java. It also provides several Java regular expression examples.

Browse Document      View Document (complete)


Java Concurrency / Multithreading - Tutorial      [To Top]

This article describes how to do concurrent programming with Java. It covers the concepts of parallel programming, immutability, threads, the executor framework (thread pools), futures, callables and the fork-join framework.

Browse Document      View Document (complete)


Java Date, Calendar and Time API - Tutorial      [To Top]

This article explains the API for using Calendar, Date and Time in Java.

Browse Document      View Document (complete)


Dependency Injection - Overview Tutorial      [To Top]

This article describes the general concept of dependency injection. It gives then pointer how dependency injection can be used in Java.

Browse Document      View Document (complete)


Unit testing with JUnit 4.x in Eclipse - Tutorial      [To Top]

This article explains unit testing with JUnit 4.x.

Browse Document      View Document (complete)


Testing with EasyMock - Tutorial      [To Top]

This article explains testing with the Easymock framework within Eclipse.

Browse Document      View Document (complete)


FindBugs in Eclipse      [To Top]

This article will describe the usage of the Findbugs plugin for Eclipse.

Browse Document      View Document (complete)


Checkstyle in Eclipse      [To Top]

This article will describe the usage of the Checkstyle plugins for Eclipse.

Browse Document      View Document (complete)


Creating PDF with Java and iText - Tutorial      [To Top]

This article demonstrate how to create PDF files with Java and the iText library. The creation of sections, standard text, lists and tables is demonstrated.

Browse Document      View Document (complete)


The Spring Jdbc Template for database access - Tutorial      [To Top]

This article describes the usage of the Spring JDBC Template in a standalone application.

Browse Document      View Document (complete)


Dependency Injection with the Spring Framework - Tutorial      [To Top]

This article describes how to use dependency injection with the Spring Framework.

It first describes dependency injection as a general principle, gives then an overview of Spring and explains then the configuration of Spring with annotations and with XML.

Browse Document      View Document (complete)


Quick getting started guide for Apache Lucene - Tutorial      [To Top]

Apache Lucene provide a full featured search engine which can be easily integrated into own Java implementations.

This article explains how to run pre-delivered Lucene Examples and gives a short explaination of the used objects.

Browse Document      View Document (complete)


Excel and Java - Read and Write Excel with Java      [To Top]

This article demonstrate how to create and how to read Excel files with the Java Excel API. Please note that this Java Excel API is hosted and developed on sourceforge and therefore not part of the standard Java distribution.

Browse Document      View Document (complete)


JFreeChart - Tutorial      [To Top]

This article describes the usage of the Java library JFreeChart.

As example we create a pie chart.

Browse Document      View Document (complete)


Java Persistence API (JPA) with EclipseLink - Tutorial      [To Top]

This article explains how to use EclipseLink, the reference implementation for the Java Persistence API (JPA). The usage of EclipseLink is demonstrated for stand-aloneJava applications (outside the Java EE environment).

Browse Document      View Document (complete)


MySQL and Java JDBC - Tutorial      [To Top]

This article describes how to use Java JDBC to connect to MySQL and perform SQL queries, database inserts and deletes.

Browse Document      View Document (complete)


Design Patterns in Java      [To Top]

Design Patterns are best practices how to solve common know problems. Since the publication of the book "Design Patterns" from the so-called Gang-of-Four (GOF) this topic did increase in popularity. This article will try to summarize same of these patterns and describes its application from the Java perspective.

Browse Document      View Document (complete)


Design Patterns in Java - Singleton      [To Top]

This article describes the Design Pattern "Singleton" and its usage in the programming language Java.

Browse Document      View Document (complete)


Observer Design Pattern in Java      [To Top]

This article describes the Design Pattern "Observer" and its usage in the programming language Java.

Browse Document      View Document (complete)


JavaFX development with Eclipse - Tutorial      [To Top]

This article describes how to develop your JavaFX application using Eclipse.

This article is based on JavaFX 1.2, Java 1.6 and Eclipse 3.5 (Galileo). This article assumes that you know how to use Eclipse for creating Java programs.

Browse Document      View Document (complete)


Java and SAP - Java Connector (JCo) Tutorial      [To Top]

This article demonstrate how to connect Java to SAP using the SAP Java Connector (JCo). It is based on SAP JCo 3.0.4 and Java 1.6. The development environment is Eclipse 3.5.

Browse Document      View Document (complete)


SAP Web Dynpro for Java - Tutorial      [To Top]

SAP supports Web Dynpro for Java as a development approach for business applications. The following demonstrate how you can develop and deploy an application in Web Dynpro for Java.

Please note that Web Dynpro for Java is a technology which is currently only supported by SAP. Development and deployment requires the SAP Netweaver Development Studio and a Netweaver application server for Java.

This article will demonstrate how to develop a simple application with one view, provide data for the application via the context, explain how you can control the view flow on your application and explain how to display a message on your screen.

Browse Document      View Document (complete)


Geocoding with Java - Tutorial      [To Top]

The articles describes how to use available services to perform geocoding. Geocoding means that you find the geocoordinates (latitude, longitude) for an address.

Currently this article describes the geocoding service from Yahoo.

Browse Document      View Document (complete)


Programming Mobile Applications with the Java Micro Edition - Tutorial      [To Top]

This article gives an introduction into Java ME development.

Java 2, Micro Edition (J2ME) is a set of technologies and specifications developed for small devices like pagers, mobile phones, and set-top boxes. J2ME uses subsets of J2SE components, such as smaller virtual machines and leaner APIs.

For the server side communication Java Servlets are used. Any other server program, e.g. can also be used. This article does not give an introduction into servlet programming.

Browse Document      View Document (complete)


Read and create RSS feeds via Java (Stax) - Tutorial      [To Top]

This article explains how to read and create RSS feeds with a Java program.

This article uses the Stax XML writer which is part of Java 6.0. Eclipse is used as the Java IDE.

Browse Document      View Document (complete)


OpenJDK - How to install and complile - Tutorial      [To Top]

This article describes how to install and compile OpenJDK on Ubuntu.

Currently in early DRAFT

Browse Document      View Document (complete)