• Post Reply Bookmark Topic Watch Topic
  • New Topic

JWS and Applet!  RSS feed

Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a java applet which uses a couple of other resources like sound files and other java source files. this java applet is packaged into a jar file along with the other java sources it uses. This jar file is placed in a directory which contains some sound (.au) files. this directory is deployed on tomcat . I normally work with this applet structure using javascript in web browser but because it plays a lot of sound, the IE crashes. So i decided to run this applet with JWS. I packaged the directory contents i.e the .au files and the java sources jar files into a jar file. and placed the jnlp file parallel to it. but my applet is not running.....i am pasting my jnlp....


<?xml version="1.0" encoding="UTF-8"?>
<jnlp spec="1.0+" codebase="">
<title>Test JWS</title>
<vendor>Java Developer Connection</vendor>
<description>Demonstration of JNLP</description>
<j2se version="1.2+" />
<jar href=""/>
<applet-desc documentBase="" name="HornApplet" main-class="HornApplet" width="540" height="310">
<param name="scriptable" value="true" />
<param name="TestFlag" value="false" />
<param name="SoundLocation" value="" />
<param name="ServletLocation" value="" />
<param name="HornPipeName" value="/txpproz/mmi.1/mmiHupePipe" />
<param name="SoundClipCount" value="10" />


the directory structure:


jhorn.jar consists of :

jhornapplet.jar contains :
other classes
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!