Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to download .txt file using Java Web Start?

843802Aug 23 2006 — edited Oct 10 2006
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.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 7 2006
Added on Aug 23 2006
2 comments
341 views