| Author |
Not to execute console based jdbc application
|
gyan kumar
Ranch Hand
Joined: Sep 28, 2011
Posts: 61
|
|
Able to compile the file.
But at the time of running getting below error:
Exception in thread "main" java.lang.NoClassDefFoundError: Test
Caused by: java.lang.ClassNotFoundException: Test
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)
Could not find the main class: Test. Program will exit.
|
 |
gyan kumar
Ranch Hand
Joined: Sep 28, 2011
Posts: 61
|
|
|
Is there any path settings issue?
|
 |
gyan kumar
Ranch Hand
Joined: Sep 28, 2011
Posts: 61
|
|
|
done, classpath was not set properly.
|
 |
 |
|
|
subject: Not to execute console based jdbc application
|
|
|