• Post Reply Bookmark Topic Watch Topic
  • New Topic

Database connectivity  RSS feed

 
Siddhesh Desai
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I used correct SQL server name as follows
String url = "jdbc dbc:LAXMINAR-XOEK03";

My Program in Compiling without any error.

when i atten to Run i get following error..
Exception in thread "main" java.lang.NoClassDefFoundError: CreateCoffees

The example i am using is the same given on sun.java site
PLz, help me
Siddhesh
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That error message indicates that the Java Runtime Environment cannot locate the definition for the class CreateCoffees. Perhaps this relates to a CLASSPATH setting problem.

What is your CLASSPATH setting?
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!