hi guys, i am having problems wif a code i got from the net. I can compile the code fine but when i try to run it, i will get a "java.lang.ClassCastException: HelloWorld".
Below is my code. Please help me solve the problem thanx.

--------------------------------------------------------------------------------
import java.util.*;
import java.io.*;
import java.awt.Color;
import org.faceless.pdf.*;

// Yes, it's the Hello World example.
//
public class HelloWorld
{
public static void main(String[] args)
{
// Create a new PDF
PDF p = new PDF();

// Create a new page
//
PDFPage page = p.newPage(PDF.PAGESIZE_A4);
page.setFilter(PDFPage.FILTER_NONE);

// Create a new "style" to write in - Black 24pt Helvetica.
//
PDFStyle mystyle = new PDFStyle();
mystyle.setFont(new StandardFont(StandardFont.HELVETICA), 24);
mystyle.setFillColor(Color.black);

// Put something on the page.
//
page.setStyle(mystyle);
page.drawText("Hello, PDF-viewing World!", 100, page.getHeight()-100);


// Automatically go to this page when the document is opened,
// zoom to fit.
//
p.setOpenAction(PDFAction.goToFit(page));

// Add some document info
//
p.setInfo("Author", "Joe Bloggs");
p.setInfo("Title", "My First Document");

// Put a password on the document, which the user will need to enter
// before the document can be viewed.
//
p.setPassword("password");

// Write the document to a file
//
try {
OutputStream fo = new FileOutputStream("HelloWorld.pdf");
p.render(fo);
fo.close();
}
catch (Exception e) {
e.printStackTrace();
System.exit(1);
}
}
}

---------------------------------------------------------------------------------