Hi,
After surfing the World Wide Web, i got very little. It seems this is the only play where i can get help
Here is the problem :
I have a
java program :
And i am usign this to get a connection with the database from a
servlet,
the directory structure is :
C:\My Projects\BoaIntegratedWorkflow>java MyOracleConnection
It compiles fine,
but when i try to execute it the unwanted thing happens,
Exception in
thread "main" java.lang.NoClassDefFoundError: MyOracleConnection (wrong name: com/system33/model/MyOracleConnection)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$000(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
this is no less than BLUE SCREEN OF DEATH for me.
It works fine and fetches data if i drop package declararion/defination at the begining..
PLEASE HELP ME...PLEASE HELP ME....PLEASE HELP ME...
This is my last hope, or i have to move to COBOL, ha ha
[ August 08, 2008: Message edited by: David O'Meara ]