i am trying to create xls file and write into it using java 1.5

the code i have written is

import java.io.File;
import java.io.IOException;
import jxl.Workbook;
import jxl.write.Label;
import jxl.write.Number;
import jxl.write.WritableCellFormat;
import jxl.write.WritableSheet;
import jxl.write.WritableWorkbook;
import jxl.write.WriteException;
import jxl.write.biff.RowsExceededException;

public class ExcelWriting {

private WritableCellFormat timesBoldUnderline;
private WritableCellFormat times;
private String inputFile;

public void setOutputFile(String inputFile) {
this.inputFile = inputFile;

public void write() throws IOException, WriteException {
File file = new File(inputFile);
WritableWorkbook workbook = Workbook.createWorkbook(file);
workbook.createSheet("Report", 0);
WritableSheet excelSheet = workbook.getSheet(0);

private void createLabel(WritableSheet sheet)
throws WriteException {

addCaption(sheet, 0, 0, "Header 1");
addCaption(sheet, 1, 0, "This is another header");

private void createContent(WritableSheet sheet) throws WriteException,
RowsExceededException {
for (int i = 1; i < 10; i++) {
addNumber(sheet, 0, i, i + 10);
addNumber(sheet, 1, i, i * i);

for (int i = 12; i < 20; i++) {
addLabel(sheet, 0, i, "Boring text " + i);
addLabel(sheet, 1, i, "Another text");

private void addCaption(WritableSheet sheet, int column, int row, String s)
throws RowsExceededException, WriteException {
Label label;
label = new Label(column, row, s, timesBoldUnderline);

private void addNumber(WritableSheet sheet, int column, int row,
double integer) throws WriteException, RowsExceededException {
Number number;
number = new Number(column, row, integer, times);

private void addLabel(WritableSheet sheet, int column, int row, String s)
throws WriteException, RowsExceededException {
Label label;
label = new Label(column, row, s, times);

public static void main(String[] args) throws WriteException, IOException {
ExcelWriting test = new ExcelWriting();
System.out.println("Please check the result file under d:\\temp.xls");

i am not able to see the output and even xls file is not created
i am using eclipse 3.4 and the console is showing me following output

command format: Demo [-unicode] [-csv] [-hide] excelfile
Demo -xml [-format] excelfile
Demo -readwrite|-rw excelfile output
Demo -biffdump | -bd | -wa | -write | -formulas | -features excelfile
Demo -ps excelfile [property] [output]
Demo -version | -logtest | -h | -help

can anybody help me to sort out this problem?