File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC and the fly likes Not to execute console based jdbc application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Not to execute console based jdbc application" Watch "Not to execute console based jdbc application" New topic
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Not to execute console based jdbc application