Lists Home |
Date Index |
- From: Peter Murray-Rust <email@example.com>
- To: firstname.lastname@example.org
- Date: Mon, 04 May 1998 14:02:16
I am trying to put together the JUMBO package to run as an applet as well
as an application. [Jumbo1.0 does this]. Since JUMBO2.0 is written in
JDK1.1, with Swing, there are some new aspects for me. I'd be very grateful
for any pointers - if you think they are general to XML-DEV, please reply
here, else to me.
I need three types of operation:
1. java/jre applications
2. applets from a remote site (i.e. from a server)
3. applets on the same file system (a CDROM) as the data and *.html
2 and 3 are close but there are differences in that the local CLASSPATH can
interact differently with the browser. For example, in 3 it was important
not to have a CLASSPATH set.
My current approach is to structure directories:
greetings.html (for driving the applet)
*.jar (aelfred.jar, sax.jar. swing.jar)
Jumbo.class (class files, etc.)
greetings.xml example files
*.cfg configuration files (e.g. parsers available, etc)
To run a jre we have:
mbo\classes;C:\jdk1.1.5\classes.zip jumbo.xml.Jumbo greetings.xml
To run an applet the applet contains:
<APPLET WIDTH="300" HEIGHT="300" CODE="jumbo.xml.Jumbo"
<PARAM NAME="COMMANDLINE" VALUE="greetings.xml">
[I have not put Jumbo in a jar, though presumably I could do so.]
I'd be grateful for the following info:
- will the jar files sax.jar, swing.jar, etc. work in applets (are they
compressed? does it matter?)
- can the swing.jar be put in the Netscape *.jar library (I'm using
Netscape 4.05 which says it supports JDK1.1.5).
- do the top-of-the-classes and *.jar *have* to be in the same directory as
the *.html (I believe this used to be a requirement).
- how do I manage resource files? In applications they can be picked up
either from a -D argument or - ?deprecated - from an environment variable.
This isn't possible for applets.
- if there are other problems (or solutions) I haven't thought of, I'd be
Peter Murray-Rust, Director Virtual School of Molecular Sciences, domestic
VSMS http://www.nottingham.ac.uk/vsms, Virtual Hyperglossary
xml-dev: A list for W3C XML Developers. To post, mailto:email@example.com
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:firstname.lastname@example.org the following message;
To subscribe to the digests, mailto:email@example.com the following message;
List coordinator, Henry Rzepa (mailto:firstname.lastname@example.org)