I am baffled as to why i keep receiving a "java.lan.NoCla ssDefFoundError : C:\Ini
Exception in thread "main".
My CLASSPATH is C:\javapgm\test App\WEB-INF\classes\tes tenv;C:\oracle\ ora92\jdbc\lib\ classes12.jar;
My class file has been created. Now i need to know what exactly is causing this error outside of CLASSPATH being set.
Exception in thread "main".
My CLASSPATH is C:\javapgm\test App\WEB-INF\classes\tes tenv;C:\oracle\ ora92\jdbc\lib\ classes12.jar;
My class file has been created. Now i need to know what exactly is causing this error outside of CLASSPATH being set.
Code:
import java.util.Properties;
import java.util.Vector;
import java.io.FileInputStream;
import java.io.File;
public class IniA
{
private static Properties m_ApiProperties = null;
private static sFile = "C:\\readFile.ini";
public IniA()
{
}
public static void loadProperties(boolean bShowDebug, String sFile)
{
// String sFile = "readFile.ini";
try
{
File objFile = new File(sFile);
if( objFile.canRead() )
{
FileInputStream fin = new FileInputStream(objFile);
m_ApiProperties = new Properties();
m_ApiProperties.load(fin);
}
}
catch(java.io.FileNotFoundException e)
{
// FTTrace.handleMessage (FTTrace.HANDLER_APP_PT_MSG," ERROR: FileNotFoundException = " + e.getMessage());
}
catch(java.io.IOException e)
{
//FTTrace.handleMessage(FTTrace.HANDLER_APP_PT_MSG," ERROR: IOException = " + e.getMessage());
}
}
public static void main(String pstrArgs[])
{ // simple unit test
try{
IniA();
}
catch(Exception x)
{
System.out.println(x);
}
System.out.println("HI");
}
}
Comment