In article
<9e1013e1-ae5a-4bcc-8fe8->,
wrote:
> On Feb 6, 6:02Â*pm, "John B. Matthews" <nos...@nospam.invalid> wrote:
> > In article
> > <36217ea8-e156-44a3-87a8-5964bc825...@s1g2000prg.googlegroups.com>,
> > Â*anuragsinghraj...@gmail.com wrote something like:
> > [...]
> >
> > > I have an applet program in NetBeans. I imported two JAR files, and
> > > the project worked fine when I ran it from NetBeans. The problem
> > > arose when I tried to launch it using the following HTML file:
> > [...]
> > > Â* <APPLET
> > > Â* Â* ARCHIVE = Â*" log4j.jar, Â*ActForexApi.jar "
> > > Â* Â* CODE = Start.class
> > > Â* Â* WIDTH = 600
> > > Â* Â* HEIGHT = 400
> >
> > > Â* </APPLET>
> > [...]
> > > In the above ARCHIVE parameter, I need to use two jar files, but it's
> > > detecting only one. What should I do?
> >
> > How did you determine that the applet container is loading only one JAR
> > file? Is the errant file name spelled correctly. Is your host file
> > system case sensitive? Are trailing spaces significant? Â*Are more than
> > two JAR files required? Have you tried other containers?
[...]
> I tried to run the above applet program using a batch file with the
> following code:
>
> @echo off
> set CLASSPATH="ActForexApi.jar";"log4j.jar";"."
> java -cp %CLASSPATH% Start
>
> and its working fine.
[...]
> what could be the reason that it runs from Batch File, but not from
> HTML File.
Sorry, I'm weak on DOS batch syntax, but I see that the HTML ARCHIVE
attribute contains spaces that aren't in the batch file's CLASSPATH.
Also, the latter contains the current directory, while the former does
not. Finally, the latter runs an application; perhaps the applet fails
perform the same initialization. Here is a simple example of a hybrid
that uses a single method to initialize the top-level container:
<http://sites.google.com/site/drjohnbmatthews/subway>
[Please trim signatures when replying]
--
John B. Matthews
trashgod at gmail dot com
<http://sites.google.com/site/drjohnbmatthews>