Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

unreported jdbc exception

 
Adewale Adebusoye
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm writing a pie chart applet. It connects to a database and retrieves values which it the uses to draw the chart.
i wrote it in Jbuilder, and it works fine, and even shows in their inbuilt browser. The problem is that it dosen't show up in internet explorer even with jre and the plugins. The java console tells me that it can't load the jdbc driver class. but this works with jbuilder.
I tested other applets and they loaded fine, so i know that the problems not from my browser.
How can i resolve this issue?
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34195
340
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This sounds like an applet configuration issue, so I'm moving it to our applets forum. If not, someone can move it back to JDBC.
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Where are your JDBC driver classes located? Are they accessible from the browser/applet?
 
Adewale Adebusoye
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My JDBC classes are packaged in my IDE and work just fine there, i mean i,ve writen database applications with it.
It's making it work from my internet explorer thats the problem.
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Then that's your problem. In a proper web page (outside the IDE) the driver classes can't be accessed by the applet - you need to add them to your applet directory, and also reference them in your applet tag.
 
Adewale Adebusoye
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
please could you show me how, and also include a few code samples if it would be convienient thanks
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This article talks (amongst other things) about the "archive" attribute of the applet tag. You use that to specify multiple jar files that your applet uses, one of which would be the DB driver, and another one would be the applet itself. Alternatively, you can extract all the class files and put them in a directory hierarchy, but I would advise against that.
[ November 03, 2005: Message edited by: Ulf Dittmer ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic