permaculture playing cards
The moose likes JNLP and Web Start and the fly likes JWS and Applet! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JNLP and Web Start
Bookmark "JWS and Applet!" Watch "JWS and Applet!" New topic

JWS and Applet!

Neeraj Macker
Ranch Hand

Joined: Nov 10, 2004
Posts: 77
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
I agree. Here's the link:
subject: JWS and Applet!
jQuery in Action, 3rd edition