compiler says class can't be initialized

ok, i know abstract classes can't be initialized, but i am extending my base class, but my complier says that "class ClassificationParser can't be initialized" but i am not initializing it. IF anyone can point out a problem, which i just can't see please do. Thank you..

first is listed the base abstract class, second the extended class

package cattlemanager.utilities.parsers;

import java.util.Vector;

import java.io.File;

import java.io.IOException;

/**

* Title:ClassificationParser

* Copyright:Copyright (c) 2001

* Company:None

* @author Harold Smith III

* @version 1.0

*/

publicabstractclass ClassificationParser

{

/**

* <p>This method returns the instance of a <code>Classification</code> objects

* that the implementor can work with and use to there own extent. This allows

* for the parser to read in all the file data, and insert it into the

* <code>Classification</code> Objects that he or she wishes the user to

* modify.</p>

*

* <p><strong>Important</strong> - The <code>Vector</code> that is returned will

* contain a <code>Vector</code> of <code>Vector</code>'s that the implementor

* must work with. The reason for a <code>Vector</code> of <code>Vector</code>'s

* is the <code>Classification</code> data may contain several past <code>

* Classification</code> records.</p>

*

* @return Vector the data vector.

*/

public Vector getData()

{return vInternalClassificationDataObject;

}

/**

* <code>parse</code> is the default parsing mechanism for the read in data

* that the user can integrate into there records. Using the <code>parse</code>

* method, the implemented class will read in the specified <code>File</code>

* and the <code>Classification</code> Objects will be initialized with tthe

* read in data.

*

* @param File the file to be parsed, should follow the specified format

* determined by the appropriate association.

*

* @throws WrongFormatException if the file is not formatted to the standards

* the association has laid out.

* @throws IOException if there is a file problem.

*/

publicabstractvoid parse(File fName)throws WrongFormatException, IOException;

/**

* The internal <code>Vector</code> of objects that will be laid out as specified

* in the <code>getData</code> method described within this class.

*

* @see #getData

*/

protected Vector vInternalClassificationDataObject;

}

package cattlemanager.utilities.parsers;

import java.io.File;

import java.io.FileInputStream;

import java.io.DataInputStream;

import java.io.IOException;

import java.io.EOFException;

import java.util.StringTokenizer;

import java.util.Date;

import java.util.GregorianCalendar;

/**

* Title:HolsteinAssociationClassificationParser

* Copyright:Copyright (c) 2001

* Company:None

* @author Harold Smith III

* @version 1.0

*/

publicclass HolsteinAssociationClassificationParserextends ClassificationParser

{

private HolsteinAssociationClassificationParser()

{try

{ parse(new File("demo.ext"));

}

catch (Exception e)

{

}

}

/**

* Doesn't work?!

*/

publicstaticsynchronized ClassificationParser createInstance()

{returnnew HolsteinAssociationClassificationParser();

}

/**

* <code>parse</code> parses the <a href="www.holstein.com">Holstein

* Association</a> classification data as laid out in there <code>File</code>

* format. By using this parser, one can read in the records and access the

* data that they need.

*

* @param File the name of the file to be parsed.

* @throws WrongFormatException if the file is not properly formated

*/

privatevoid parse(File fName)throws WrongFormatException, IOException

{

try{

// READ IN FILE

}

/**

* Creates an instance of a date for the format specified by the Holstein

* Association

*/

private Date createDate(String time)

{ GregorianCalendar c = (GregorianCalendar) GregorianCalendar.getInstance();

c.set(Integer.parseInt(time.substring(0,4)), Integer.parseInt(time.substring(4,6))-1, Integer.parseInt(time.substring(6,8)));

return c.getTime();

}

}

[7197 byte] By [haroldsmith] at [2007-9-26 2:25:25]
# 1
ah stupid errors, i figured it out, i accidently created an instance in a class before i decided to change the class to abstract!
haroldsmith at 2007-6-29 9:36:29 > top of Java-index,Core,Core APIs...