wood burning stoves 2.0*
The moose likes JNLP and Web Start and the fly likes Starting Suns Sample App webpad 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 "Starting Suns Sample App webpad" Watch "Starting Suns Sample App webpad" New topic
Author

Starting Suns Sample App webpad

don cline
Ranch Hand

Joined: Oct 10, 2003
Posts: 35
I am new to Java Web Start. I am trying to run Sun's Web Start example
webpad. I am using Tomcat 4.1.31

I built the webpad war file according to instructions:
"To build .war file, run below command inside the war directory
jar -cvf ../webpad.war ."

I placed the war file in the $TOMCAT_HOME/webapps directory and restarted
Tomcat.

I went to the associated web page at:
http://localhost:8080/webpad/war/index.html

So far, so good.

I tried to launch the webpad app and got an error:
"An error occurred while launching/running the application.
Category: Launch File Error
The field <jnlp>codebase has an invalid value: $$codebase"

On the exception tab it lists:


What did I leave out?

Don
Jared Cope
Ranch Hand

Joined: Aug 18, 2004
Posts: 243
Hi,

I assume that your localhost:8080/webpad/war/index.html page has a link to the .jnlp file that the user clicks on.

Can you post the contents of this file. It may be a bit more obvious what it going on then.

Cheers, Jared.
[ December 15, 2004: Message edited by: Jared Cope ]

SCJP 1.4 91%, SCJP 1.5 88%, SCJD B&S
don cline
Ranch Hand

Joined: Oct 10, 2003
Posts: 35
The .jnlp file as provided by Sun:



Thanks in advance
Don
don cline
Ranch Hand

Joined: Oct 10, 2003
Posts: 35
OOPS...

One of the lines in the .jnlp file is incorrect and should read:

The line I showed was an attempt to fix the problem...

Don
 
GeeCON Prague 2014
 
subject: Starting Suns Sample App webpad