The Artima Developer Community
Sponsored Link

Java Answers Forum
How to resolve applet-microsoft jdbc driver issue?

4 replies on 1 page. Most recent reply: Jul 29, 2003 12:47 AM by Mohamed Riyaz

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 4 replies on 1 page
Mohamed Riyaz

Posts: 7
Nickname: riyaz
Registered: Jul, 2003

How to resolve applet-microsoft jdbc driver issue? Posted: Jul 24, 2003 1:09 AM
Reply to this message Reply
Advertisement
I've written the code using microsoft sql server 2000 driver.This is working fine applications. When i implemented in applet,it throwing Class not found exception at runtime.
and I also added permissions in java.policy tool. How do I correct this runtime error.

java.policy


grant {

permission java.lang.RuntimePermission "accessClassInPackage.com.microsoft.util";
java.lang.RuntimePermission "accessClassInPackage.com.microsoft.jdbc";
java.lang.RuntimePermission "accessClassInPackage.com.microsoft.jdbcx";
permission java.net.SocketPermission "serverid:1433","connect";
};


ricky

Posts: 8
Nickname: ricky30000
Registered: Jul, 2003

Re: How to resolve applet-microsoft jdbc driver issue? Posted: Jul 26, 2003 3:19 PM
Reply to this message Reply
You need to use this line when running it in the applet viewer you can not load it in a web browser.

appletviewer –J –Djava.security.policy=SearchAppletPol.policy SearchApplet.html


SearchAppletPol is the name of the policy file and SearchApplet.html is the name of the html document to load the applet in.

Greg Lehane

Posts: 33
Nickname: glehane
Registered: Jun, 2003

Re: How to resolve applet-microsoft jdbc driver issue? Posted: Jul 26, 2003 5:37 PM
Reply to this message Reply
You might also look into digitally signing your applet instead. Then you won't have to deal with those pesky policy files any more.

You can find more information on this on suns website.

=- Greg

Adam Duffy

Posts: 168
Nickname: adamduffy
Registered: Feb, 2003

Re: How to resolve applet-microsoft jdbc driver issue? Posted: Jul 28, 2003 5:52 AM
Reply to this message Reply
Alternatively...

Use servlets and have the applet communicate with the database via the servlet. No policy files or digitally signed applets required.

Adam

Mohamed Riyaz

Posts: 7
Nickname: riyaz
Registered: Jul, 2003

Re: How to resolve applet-microsoft jdbc driver issue? Posted: Jul 29, 2003 12:47 AM
Reply to this message Reply
Thanks,

since our server is located in remote site running sql server 2000 database using IIS.I'm not sure there JRun running on IIS machine.Is it possible to convert JVM applet to Microsoft VM applet. or Do I create applet using Microsoft Visual java. Kindly reply.

riyaz

Flat View: This topic has 4 replies on 1 page
Topic: Printing a String of a defined number of Previous Topic   Next Topic Topic: declaring variable value & output?

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use