• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

code working in Appletviewer but not browser

 
sagar sal
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic