File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Applets and the fly likes applet connect Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
Bookmark "applet connect" Watch "applet connect" New topic

applet connect

sriram vaidyanathan

Joined: Nov 21, 2008
Posts: 1
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

Joined: Mar 22, 2005
Posts: 42965
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 ]
I agree. Here's the link:
subject: applet connect
It's not a secret anymore!