This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Applets and the fly likes code working in Appletviewer but not browser Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "code working in Appletviewer but not browser" Watch "code working in Appletviewer but not browser" New topic
Author

code working in Appletviewer but not browser

sagar sal
Greenhorn

Joined: Jan 03, 2004
Posts: 1
Hi
I am accessing ms access db from java applet and viewing in appletviewer.
I am able to view the data.
But if i view it in browser then i get error.
java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] Could not find file '(unknown)'.

Ne help would be appreciated.
Sagar
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
Welcome to JavaRanch, salgar!
This could be an Applet issue and/or it could be a JDBC issue.
Let's give the Applet angle a shot first. Moving this thread to the Applets forum...


[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
What do the relevant parts of your code look like?
Are you aware of the security restrictions applied to Applets?
Are you familiar with CLASSPATH settings and how to assure that necessary class files are available to an application, and an Applet?
David Vickers
Greenhorn

Joined: Oct 02, 2003
Posts: 13
Hi
You might need to include the jar relevent to access, along with the applet itself.
Sounds like its not finding the relevent clas it needs. Also, check your project file, as it may not be including the jar/library. Your applet viewer, which I guess is part of your development enviro, may have it built in, but the browser may not?
 
jQuery in Action, 2nd edition
 
subject: code working in Appletviewer but not browser
 
Similar Threads
Using JDBC.ODBC Driver with an applet
can i veiw image in an appletviewer
Applet and JDBC
class not found ??????
Jdbc through applets