How to download .txt file using Java Web Start?

My aplication need .txt and .ini files to work properly. Is it possible to change my jnlp file to download these kinds of files?I saw that even .php files can be downloaded with JWS ,and I tried something like that with txt file, but I got this message :

Bad MIME type returned from server when accessing resource: http://www.is.im.ns.ac.yu/bobericd/bisis/map.txt- text/plain

My jnlp file looks like this

<?xml version="1.0" encoding="utf-8"?>

<!-- JNLP File for circ.jar -->

<jnlp

spec="1.0+" codebase="http://www.is.im.ns.ac.yu/bobericd/bisis" href="circ.jnlp">

<information>

<title>Circ</title>

<vendor>PMF</vendor>

<description>Aplikacija</description>

<offline-allowed/>

<icon href="http://www.is.im.ns.ac.yu/bobericd/Bisis/Icons/circ.gif"/>

</information>

<security>

</security>

<resources>

<j2se version="1.5+"/>

<jar href="circ.jar"/>

<jar href="lib/ilf-gpl.jar"/>

<extension name="map" href="map.txt">

</extension>

</resources>

<resources os="Windows"/>

<application-desc main-class="com.gint.app.bisis.circ.CircApplet"/>

</jnlp>

I would appreciate a help with this problem.

[1438 byte] By [jwsbeginera] at [2007-10-3 3:22:38]
# 1
jwsbeginer:I'm trying to do the exact same thing. I want to put a text file that my java application can read when it starts up. I also get the "Bad MIME type returned" error. Could someone please give an example of an jnlp file that downloads some text files in addition to jar
donbrocka at 2007-7-14 21:15:09 > top of Java-index,Desktop,Deploying...
# 2

One solution to accessing .txt (or .ini, .jpg..) files as resources

is as I have done in a webstart example that tests lazy downloads.

It is more perhaps complicated than you need,

but the basic idea is to jar the resources and

add the resource jar to the launch file..

<?xml version="1.0" encoding="utf-8"?>

<jnlp spec="1.0"

codebase="http://www.javasaver.com/testjs/jws/cache3"

href="jwscache.jnlp">

<information>

<title>JWS Cache Test 3</title>

<vendor>Andrew Thompson</vendor>

</information>

<resources>

<j2se href="http://java.sun.com/products/autodl/j2se" version="1.5+"/>

<jar href="main.jar" download="eager" main="true" part="main" size='3676' />

<package name="test.*" part="main" />

<jar href="imagepanel.jar" download="lazy" part='panel' size='2180' />

<package name="test.common.*" part="panel" />

<jar href="animalcode.jar" download="lazy" part="animal" size='861' />

<package name="test.pkg1.AnimalImage" part="animal" />

<jar href="animalmedia.jar" download="lazy" part="animal" size='368231' />

....

</resources>

<application-desc main-class="test.JWSCacheTest" />

</jnlp>

The animalmedia.jar contains just a single image file.

AndrewThompson64a at 2007-7-14 21:15:09 > top of Java-index,Desktop,Deploying...