jQuery in Action, 3rd edition
The moose likes Java in General and the fly likes applets Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "applets" Watch "applets" New topic


Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
I have some problem with applets..i've written the entire code for displaying data from the database with jdbc and using jdbc-odbc driver.this is working fine in j-developer but not on jdk...(command line)...\
can u help me...
Jim Yingst

Joined: Jan 30, 2000
Posts: 18671
Perhaps. What happens when you try it using JDK? Do you get an error message? What does it say?

"I'm not back." - Bill Harding, Twister
Franky D'Souza

Joined: Mar 20, 2001
Posts: 5
An applet can only communicate with the host from which it is loaded. Hence it cannot access the System DSN on your machine. I dont know about the J-Developer kit. However if u are using jdk then u will have to modify the java policy file to grant access, then it will work using appletviewer, but not on your browser. to grant access via browser u have to sign the applet or use pure java drivers which can be sent to the client machine via jar files.
Hope this helps.
I agree. Here's the link: http://aspose.com/file-tools
subject: applets
jQuery in Action, 3rd edition