Subject Re: [Firebird-Java] Re: JDBC and connectivity in an Applet - using FB 1.5.3 - baffled.
Author Mark Rotteveel
I don't think your problem is actually Firebird related, so you might be
better off asking this question on a general Java forum.

However to me it looks like your applet configuration is very wrong:

All jar files need to be specified comma-separated and be relative to
your codebase location. You are currently specifying them with an
absolute path, Unix-style (colon separated) and using some kind of
meta-info that is probably copy-pasted from BlueJ.

You might want to take a look at http://mindprod.com/jgloss/applet.html

Using Applets to directly access your database is actually not
advisable: your database is open to world+dog and credentials are
available to everyone through the applet.

Mark

plinehan wrote:
>
> In Firebird-Java@yahoogroups.com, Roman Rokytskyy <roman@...> wrote:
>
>
>> You have to add Jaybird's jar file to the codebase parameters of the
>> applet. Did you do this?
>
>
> Hi Roman,
>
>
> See below for code - I'm using BlueJ for this, and I've piled
> in every jar I can see or find into the libraries and classpaths.
>
>
> See below - and also, as I said, I have this working no
> problem in an app - it's just the applet I can't get
> to connect (same libraries and classpaths for app - same
> machine and logon in fact!)
>
> Thanks for any help in this matter.
>
>
> Rgs,
>
>
> Paul...
>
>
> linehanp@lg12x27:~/MyDocuments/ITProject/db$ echo $CLASSPATH
> /users/ug/linehanp/MyDocuments/ITProject/db
> :/users/ug/linehanp/MyDocuments/ITProject/db/jdbc
> :/users/ug/linehanp/MyDocuments/Interbase/Firebird/Linux/BlueJ/bluej/lib
> :/users/ug/linehanp/opt/python/bin
> :/users/ug/linehanp/MyDocuments/Interbase/Firebird/Linux/dbTest
> :.
> :/users/ug/linehanp/paul/bin
> :/usr/local/bin
> :/usr/bin:/bin:/usr/games
>
>
>
> <head>
> <title>AppletCust Applet</title>
> </head>
> <body>
> <h1>AppletCust Applet</h1>
> <hr>
> <applet code="AppletCust.class"
> width=500
> height=500
> codebase="."
> archive="file
> :/users/ug/linehanp/MyDocuments/Interbase/Firebird/Linux/BlueJ/bluej/lib/bluejcore.jar,file
> :/users/ug/linehanp/MyDocuments/Interbase/Firebird/Linux/BlueJ/bluej/lib/junit.jar,file
> :/users/ug/linehanp/MyDocuments/ITProject/db/mini-j2ee.jar,file
> :/users/ug/linehanp/MyDocuments/ITProject/db/jaas.jar,file
> :/users/ug/linehanp/MyDocuments/ITProject/db/log4j-core.jar,file
> :/users/ug/linehanp/MyDocuments/ITProject/db/jaybird-full-2.1.6.jar,file
> :/users/ug/linehanp/MyDocuments/ITProject/db/"
> alt="Your browser understands the <APPLET> tag but isn't running the applet, for some reason."
> >
>
> Your browser is ignoring the <APPLET> tag!
> </applet>
> <hr>
> </body>
> </html>
--
Mark Rotteveel