Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

applet connect

 
sriram vaidyanathan
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am new to java. I have created an applet that access an sql database through ODBC and retivies data and write back some.I am using netbeans.I able to run properly inside netbeans.If I try to give a applet tag and run it on browser it doesnot want should i do. Can anybody help me.
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to JavaRanch.

What does "it does not run" mean? Are the any error messages in the Java Console? If so, post them with their complete stack trace. Also post the complete applet tag you have in your HTML page.

Are you aware that applets can't use desktop resources (like an ODBC connection) without being expressly allowed to do so? See HowCanAnAppletReadFilesOnTheLocalFileSystem for more details.

Also, why are you making this an applet (as opposed to an application)? Since the ODBC connection needs to be set up on the desktop, the applet will only work on your machine anyway (unless the other users set up those connections on their machines, too).
[ November 21, 2008: Message edited by: Ulf Dittmer ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic