aspose file tools*
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


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » JNLP and Web Start
Bookmark "JWS and Applet!" Watch "JWS and Applet!" New topic
Author

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="http://200.200.165.169:8080/jhornjws/">
<information>
<title>Test JWS</title>
<vendor>Java Developer Connection</vendor>
<description>Demonstration of JNLP</description>
</information>
<offline-allowed/>
<resources>
<j2se version="1.2+" />
<jar href="http://200.200.165.169:8080/jhornjws/jhornapplet.jar"/>
</resources>
<applet-desc documentBase="http://200.200.165.169:8080/jhornjws/" name="HornApplet" main-class="HornApplet" width="540" height="310">
<param name="scriptable" value="true" />
<param name="TestFlag" value="false" />
<param name="SoundLocation" value="http://200.200.165.169:8080/jhornjws/" />
<param name="ServletLocation" value="http://200.200.165.169:8080/jhornjws/HornMessageServlet" />
<param name="HornPipeName" value="/txpproz/mmi.1/mmiHupePipe" />
<param name="SoundClipCount" value="10" />
</applet-desc>
</jnlp>

--------------

the directory structure:

$tomcat_home/jhornjws/jhorn.jar
/jhorn.jnlp

jhorn.jar consists of :
1.au
2.au
3.au
4.au
jhornapplet.jar

jhornapplet.jar contains :
HornApplet.class
other classes
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JWS and Applet!