aspose file tools*
The moose likes Applets and the fly likes unreported jdbc exception Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
Bookmark "unreported jdbc exception " Watch "unreported jdbc exception " New topic
Author

unreported jdbc exception

Adewale Adebusoye
Ranch Hand

Joined: Sep 28, 2005
Posts: 118
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?


"Human beings can alter their lives by altering their state of mind" William James
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30915
    
158

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.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42599
    
  65
Where are your JDBC driver classes located? Are they accessible from the browser/applet?


Ping & DNS - my free Android networking tools app
Adewale Adebusoye
Ranch Hand

Joined: Sep 28, 2005
Posts: 118
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
Marshal

Joined: Mar 22, 2005
Posts: 42599
    
  65
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

Joined: Sep 28, 2005
Posts: 118
please could you show me how, and also include a few code samples if it would be convienient thanks
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42599
    
  65
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 ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: unreported jdbc exception