aspose file tools*
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

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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: 39547
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 ]

Ping & DNS - updated with new look and Ping home screen widget
It is sorta covered in the JavaRanch Style Guide.
subject: applet connect
Similar Threads
The applet class can't be found by browser?
Swing Using IE5
Groovy Applet
Applet & Application Reference
SSLException: untrusted server cert chain