----- Original Message -----
Sent: Sunday, November 03, 2002 3:54
PM
Subject: [jdjlist] java application
running from a cd-rom
>We would like to create an application running entirely from a cd-rom
for searching a database, also contained on the cd-rom. Is it possible to
achieve it without >needing to install jre on the client computer,that is,
running the jre from the cd-rom? We are not allowed to install anything on the
client computers.
>How could we set the java_home for a
potentially unknown cd-rom drive letter?
>Any help, solution alternatives are highly appreciated.
1.) Let the user start your Java application (standalone , applet , ...)
directly from the cd-rom.
2.) If you have to avoid jre you might have to convert the
database e.g. to a delimited textfile loaded via
BufferedInputStream or a precompiled .class file
with a String-list like
String szData[] = { "your", "data", "here" ,
... };
Using local filenames like "dbase.dat" ,
"dbase.txt" or "dbase.class" will automatically refer to the file on the
cd-rom (without having to know the drive letter).
I've tested this with the little Java search engine
(online version @ http://uuhome.de/penski/search.htm)
of my website's CD-ROM version .
It uses the Java classloader to load a separate
.class file from the same directory containing the database .
sincerely,
U. Penski
[EMAIL PROTECTED]
http://uuhome.de/penski
( another .class file realized Java database
applet @ http://uuhome.de/penski/miscinfo.htm#frequencies
)
____________________________________________________