JNLP Server Install
If you are running your own webserver, you can set-up a custom webstart of JamochaMUD which allows running the client directly from a link in your web browser.
This can be handy if you run your own MUD server or if you simply want to have a copy of JamochaMUD available no matter where you a mudding from.
Contents |
Required files
All the information needed to have a webstart version of JamochaMUD on your server is contained in a single JNLP file, which is a regular text/XML file which your Java install parses and uses to download and run JamochaMUD. If the JNLP file on your webserver does not launch, but instead shows the contents of the JNLP file in the browser, you'll probably need to tell your server how to send the proper content-type to the user's web browser.
Apache Webserver
Add the directive:
AddType application/x-java-jnlp-file .jnlp
to your .htaccess file.
Other Webservers
I currently do not have experience with other webservers, but feel free to update the information here.
JamochaMUD JNLP file
The JNLP file can be configured to launch JamochaMUD from your own web-server and additional be customised for your MU* (or preferred MU*).
Below is a sample JamochaMUD JNLP file:
<?xml version="1.0" encoding="UTF-8"?> <jnlp spec="1.0+" codebase="http://www.jamochamud.org/" href="JamochaMUD.jnlp"> <information> <title>JamochaMUD</title> <vendor>Jeff Robinson</vendor> <homepage href="http://www.jamochamud.org" /> <description>An open source MUD/MUCK client.</description> <icon kind="splash" href="Images/JMUDSplash.gif" /> <icon href="Images/JamochaMUD_40x40.gif" /> <offline-allowed/> </information> <security> <all-permissions/> </security> <resources> <j2se version="1.2+" /> <jar href="jar/JamochaMUD.jar"/> </resources> <application-desc main-class="anecho.JamochaMUD.JMUD" /> </jnlp>
If your users launch JamochaMUD via your JNLP file, Java will check for a newer version of the JamochaMUD.jar (on your selected server) when-ever the user starts the program. Should a newer version of JamochaMUD exist, the Java Webstart will first download the new version to the user's computer before running.
If you do not keep the "codebase" portion of the JNLP file pointed at www.jamochamud.org you will need to manually ensure that your server has the most recent version of the JamochaMUD.jar is on your target server.