|if you just want a local jnlp server do not follow these directions, instead go to Setup Local Jnlp Server|
These instructions provide a way to install jars into the jnlp cache from a local server.
This can be used to do a CD or USB stick install of webstart based software.
I've created a disk image that has the MacOS shell scripts and Java Web Start resources that can be used to manually install all the Java Web Start resources used for the UDL activities.
Here's a copy of the script: /home/sbannasch/scripts/sds-empty I use to create an empty sail dashboard dmg on the server seymour and copy it to http://rails.dev.concord.org
Here's a copy of the make_dmg script it calls:
Here's a pdf of the the initial user documentation for UDL Teachers UsingSailDashboard_v1.1.pdf.
This disk image is an empty SAIL Dashboard with the two jnlps used by the current UDL project in the file: commands/jnlps.txt.
The disk image only 5MB, so after downloading you will need to run this command:
to fill the SAIL Dashboard cache with the web start resources for the jnlps listed in the file commands/jnlps.txt.
After you download it the SAIL Dashboard volume should mount.
Contained in the SAIL Dashboard volume is a folder called: sail-dashboard
Copy that to a USB stick or a portable hard drive and fill the SAIL Dashboard cache with the remote Java Web Start resources with this command:
Then mount the portable drive on any MacOS computer that needs the UDL Java Web Start resources installed and then double click this script file in the sail-dashboard folder:
FYI (background info):
These are the jnlps whose jars the sail-dashboard-udl.dmg will be populated with:
There is also an empty sail-dashboard.dmg (only 3.5MB) located here:
Right now this only works on Macs ... the scripts could certainly be adapted for Windows however.
Download it, copy the sail-dashboard folder to another volume and add one or more jnlp urls in the file: sail-dashboard/commands/jnlps.txt.
With a TELS Jnlp url then you could use this script to install into the SAIL Dashboard cache the jnlp resources for a TELS run:
Copy the sail-dashboard folder to a portable hard drive or a USB stick and it can be used to preload the TELS jars onto classroom computers that don't already have the jars.
- trac: http://trac.cosmos.concord.org/projects/browser/trunk/common/java/deploy/sail-dashboard
- svn: svn co https://svn.concord.org/svn/projects/trunk/common/java/deploy/sail-dashboard
We are using the script listed here: Creating MacOS dmg files in Linux to script the production of MacOS dmg files on our Linux servers.
The MacOS command line utility: hdutils can be used in a shell script to create a MacOS Disk Image of the sail-dashboard folder.
In order for a MacOS disk image to mount with the sail-dashboard folder appearing in the mounted volume a copy of the sail-dashboard folder should be place inside another folder.
After completing a svn export of sail-dashboard code edit the file: sail-dashboard/commands/jnlp.txt to include the Jnlp url(s) you would like the SAIL Dashboard to cache.
The procedure would go like this:
- a developer follows the first 2 sections to setup the CD or USB stick.
- the developer makes a shell script or .bat file to automate the last section.
- a user can then just run the shell script or .bat file
This process uses the "-import" option built into javaws. That is documented here
But that documentation does not address how to do the "import" when versioned jars are being used. So the procedure below describes how use the "-import" option with versioned jars.
this is a slightly modified version of the script on Setup Local Jnlp Server. The difference is the "-Dgenerate.import.jnlps=true".
This leaves the original codebase in the jnlp files, and removes a href attribute if they have one. This is necessary for the javaws -import command to work.
The best way to figure out the appropriate codebase is to look at the jnlp file you are trying to import. Then replace