The Artima Developer Community
Sponsored Link •

Design Forum
applet and jdbc

2 replies on 1 page. Most recent reply: Sep 7, 2002 1:53 PM by Brian Perry

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 2 replies on 1 page
jean

Posts: 1
Nickname: jean2002
Registered: Jul, 2002

applet and jdbc Posted: Jul 15, 2002 12:51 PM
Reply to this message Reply
Advertisement
hi
I have a java project that connect to oracle 8i
(java swing).
but I want connect to my project through browser
and i decide to convert it to applet but I have a problem .
when I run the project i reciev an error that it can't find the DRIVERMANAGER class
(Drivermanager.registerdriver ....)

I didn't change any code and I don't know why I recive this error
I want U to hlp me
thanks
jean


Thomas SMETS

Posts: 307
Nickname: tsmets
Registered: Apr, 2002

Re: applet and jdbc Posted: Aug 5, 2002 5:09 PM
Reply to this message Reply
Well because the Oracle driver is not provided with the default JDK.... :-)
You could for testing purpose define a CLASSPATH variable in your envrionment. The variable should include the classes12.zip file.

In bash you can do :
  #
# Assuming the file is locate in /opt/jdk/libs
#
CLASSPATH=/opt/jdk/1.3/jre/lib/rt.jar:/opt/jdk/libs/classes.zip:.
export CLASSPATH


You could otherwise prepare the deployed version in using the

<applet codebase="some_url"
code="the_main_applet_class"
archive="some_jars_not_part_of_the_SDK"
width=400
height=75>
<param name=<aName> value=<aValue>>
Text for browser that cannot display Java applets
</applet>


You therefore need to add the classes12.zip to the archives attribute of the <applet> tag.

See : http://java.sun.com/products/jdk/1.1/docs/guide/misc/applet.html for more informations


Rgds,

Thomas SMETS,
SCJP2 - Brussels

Brian Perry

Posts: 2
Nickname: nepoez
Registered: Sep, 2002

Re: applet and jdbc Posted: Sep 7, 2002 1:53 PM
Reply to this message Reply
there will be security issues, I got around it by writing a server(can be console) and it will receive instructions from the client applet and then let the server do the jdbc requests and send the info back to the applet

Flat View: This topic has 2 replies on 1 page
Topic: Advise about Architecture? Previous Topic   Next Topic Topic: No one wants to download a 10 meg JAVA plug-in

Sponsored Links



Google
  Web Artima.com   

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