• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Connection to remote DB server to run JDBC application program

 
Naren Chivukula
Ranch Hand
Posts: 577
Java Notepad Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

When I run simple JDBC application program from Jbuilder it is running smoothly where the database is located on different machine. If I try to run (Compilation is fine) the same program on my command prompt, I'm getting exception "ClassNotFoundException".

Should I need to configure DSN or any other on my computer to run the program? Please tell me the necessary solution to be taken so as to run the program on my command prompt


Thanks and Regards,
Narendranath
 
Adeel Ansari
Ranch Hand
Posts: 2874
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which class not found?
Make sure you have all the necessary libraries on your classpath.
 
Naren Chivukula
Ranch Hand
Posts: 577
Java Notepad Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry, actualy I get the exception

Exception in thread "main" java.lang.NoClassDefFoundError: TripNumberingSchemeDAO
 
Adeel Ansari
Ranch Hand
Posts: 2874
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Naren Chivukula:
Sorry, actualy I get the exception

Exception in thread "main" java.lang.NoClassDefFoundError: TripNumberingSchemeDAO


May be you didn't place it in a right package.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic