• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

What is wrong here

 
Ranch Hand
Posts: 469
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The following code gives me exception. I have jdk1.3 installed on my computer.

[ Edited by Dave to format code ]
[ April 18, 2002: Message edited by: David O'Meara ]
 
Ranch Hand
Posts: 3244
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Angela
What exception does it give you?
Is it a ClassNotFoundException because it cant find the classes 'textFileDriver' and 'imaginary.sql.iMsqlDriver:'. Or does the colon on the end of the second one have something to do wtih it?
 
Angela D'souza
Ranch Hand
Posts: 469
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It gives exception ClassNotFoundException with classes 'tectFileDriver'
Thanks
Angela
 
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Angela,
Pls check your classpath again.
You could set the Classpath using the following:
On Unix :
set CLASSPATH=$CLASSPATH;<path>
On Windows:
set classpath=%classspath%:<path>
Hope it helps.

Mahesh
 
Angela D'souza
Ranch Hand
Posts: 469
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What should I set in Classpath?
Thanks,
Angela
 
Ranch Hand
Posts: 1879
MySQL Database Suse
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Angela D'souza:
What should I set in Classpath?
Thanks,
Angela

the classpath has the path's to all needed java classes that you use. There should be a classpath entry pointing to sun's java classes ( jdk ), you should have also have an entry to the place where your jdbc drivers reside. If you downloaded your mySQL drivers to c:/jdbc/drivers/<driver_name>.zip then you should have a classpath entry in your autoexec.bat file of 'c:/jdbc/drivers;' which will allow your java programs to find the java classes that your driver uses to implement the JDBC interface.
if you are using sun's jdbc dbc drivers then you will not have to alter your classpath, but you must set up the database as an ODBC datasource before you can connect to it.
Jamie
 
The moth suit and wings road is much more exciting than taxes. Or this tiny ad:
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
reply
    Bookmark Topic Watch Topic
  • New Topic