>I'm trying to get an applet to run off a CD with appletviewer. I want
>this to be self contained so that the end user does not have to
[quoted text clipped - 3 lines]
>to run it saying "could not find java.dll" and cound not find java 2
>runtime environment.

Signature
Canadian Mind Products, Roedy Green.
Coaching, problem solving, economical contract programming.
See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.
> >I'm trying to get an applet to run off a CD with appletviewer. I want
> >this to be self contained so that the end user does not have to
[quoted text clipped - 17 lines]
> Then your program reduces to using an application installer. see
> http://mindprod.com/jgloss/installer.html
I looks like I would need to use a java web start application, is this
correct? Also would I be able to start an external program through a
web start app?
Ray
Andrew Thompson - 14 May 2004 15:27 GMT
> Roedy Green <look-on@mindprod.com.invalid> wrote in message news:...
>>
>>>I'm trying to get an applet to run off a CD
..
>> I have invented a scheme for self-installing JWS applications from CD.
...
> I looks like I would need to use a java web start application, is this
> correct?
There are two options (as I see it) to
deliver an aplication to a customer
via CD.
1) Provide the JRE, then link to the Jar file.
2) Provide the JRE, then use JWS to install it.
>..Also would I be able to start an external program through a
> web start app?
If you can do it from an application/or
local applet, yes.
Applet premissions can be configured during JWS
install, but you would have to do it manually for
non-JWS applets.

Signature
Andrew Thompson
http://www.PhySci.org/ Open-source software suite
http://www.PhySci.org/codes/ Web & IT Help
http://www.1point1C.org/ Science & Technology
Qu?bec - 14 May 2004 16:14 GMT
> > I have invented a scheme for self-installing JWS applications from CD.
> > It uses a tiny bit of C code invoked by the autorun.inf to select one
> > of 26 automatically generated variants of the JNLP file.
Why a C file?
Is it not platform dependant?
Roedy Green - 14 May 2004 17:41 GMT
On Fri, 14 May 2004 11:14:06 -0400, "Québec" <notAgain@enough.ca>
wrote or quoted :
>Why a C file?
>Is it not platform dependant?
Yes.
part of the problem is the JNLP file must have an ABSOLUTE reference
to the CD file. The way you specify the CD drive is different on every
platform. In fact I had to create 26 variants of the JNLP file to
cover the possible drive letters they might use. I needed something
to file it off. I had a chicken-egg problem, so I wrote a tiny bit of
C to figure out which drive the CD was and select the right JNLP file
for kickoff.
Sun needs to invent something in JNLP to allow CD installs where you
just specify the JNLP file is "on CD". Then the CD would be platform
independent.
Even then, there is no platform independent autorun.

Signature
Canadian Mind Products, Roedy Green.
Coaching, problem solving, economical contract programming.
See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.
Andrew Thompson - 14 May 2004 17:50 GMT
> Sun needs to invent something in JNLP to allow CD installs where you
> just specify the JNLP file is "on CD".
Which CD drive though?
I have a DVD that reads CD's,
and a separate CD R/RW.
..I was musing once if the 'volume name'
of the CD might be better, but that turned
out to be a non-starter for some reason
I cannot recall.

Signature
Andrew Thompson
http://www.PhySci.org/ Open-source software suite
http://www.PhySci.org/codes/ Web & IT Help
http://www.1point1C.org/ Science & Technology
Roedy Green - 14 May 2004 18:19 GMT
>Which CD drive though?
It would work like this:
In windows it would have an autorun.
It would also let you select the CD as the current drive and click
"setup". This would be a jnlp file or similar that would be associated
with javaws, pre-installed.
Javaws would then figure out for itself which CD was being used.
This install would work on any OS that could associate *.JNLP files
with JWS. For others, you could feed the name of that JNLP file on
the CD to JWS.
Normally a JNLP file points to another master JNLP file to get the
latest and greatest. There needs to be a way to say "the master JNLP
file is the same JNLP file on the CD from which you started this JNLP
file" or perhaps, "the JNLP file in on CD -- ask the user which if
there are more than one, or look and only ask if you see duplicates."

Signature
Canadian Mind Products, Roedy Green.
Coaching, problem solving, economical contract programming.
See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.
Roedy Green - 14 May 2004 18:27 GMT
>..I was musing once if the 'volume name'
>of the CD might be better, but that turned
>out to be a non-starter for some reason
>I cannot recall.
I researched this when I was implementing CD installs for the
Replicator. The thing I needed was high confidentiality. Some clients
are on machines isolated from the net. They only communicate with the
outside world via CDs burned on machines with access to the net.
I was amazed at the ingenuity of hokey schemes people came up with to
get around the problem. All of them are disgusting, but no one has
found a clean way to do it. I consider fixing this the #1 outstanding
problem with Java Web Start. It will allow one click install, self
updating, shrink wrap, multi-platform apps.
see http://mindprod.com/jgloss/javawebstart.html#CD

Signature
Canadian Mind Products, Roedy Green.
Coaching, problem solving, economical contract programming.
See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.
Roedy Green - 14 May 2004 17:38 GMT
>I looks like I would need to use a java web start application, is this
>correct?
That's the easiest way. I did an Applet-style one click install too,
using a signed applet. The problem with Applets is you have to find
your own disk space for everything. With JWS, it will allocate you
some and put the DLLs, and files there.
> Also would I be able to start an external program through a
>web start app?
Yes, once you sign the Applet you can do anything an ordinary app can.
In fact a JWS program can be a perfectly unmodified ordinary app. All
you do is add a *.jnlp file to control its auto-installation.
This is one of the things I like about JWS. You can write one program
an run it as Applet, as stand-alone or as JWS with only the tiniest
bit of extra code.

Signature
Canadian Mind Products, Roedy Green.
Coaching, problem solving, economical contract programming.
See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.
Roedy Green - 14 May 2004 18:03 GMT
>Yes, once you sign the Applet you can do anything an ordinary app can.
oops. Once you sign the Weblet (JWS application) you can do anything
an ordinary app can.

Signature
Canadian Mind Products, Roedy Green.
Coaching, problem solving, economical contract programming.
See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.