Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Starting Suns Sample App webpad

 
don cline
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 243
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
don cline
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The .jnlp file as provided by Sun:



Thanks in advance
Don
 
don cline
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic