Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
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

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

I went to the associated web page at:

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?

Jared Cope
Ranch Hand

Joined: Aug 18, 2004
Posts: 243

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 cline
Ranch Hand

Joined: Oct 10, 2003
Posts: 35

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

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

I agree. Here's the link:
subject: Starting Suns Sample App webpad
It's not a secret anymore!