Solved

Change splash screen image in Java WebStart

Posted on 2007-11-22
18
1,608 Views
Last Modified: 2013-12-29
I'm trying to change the splash screen of java webstart by setting the jnlp tag like this:

<icon href="http://localhost:8080/GEMALOGIC/line.png" kind="splash"/>

But it doesnt work. I checked a few other webstart applications, and found out that some work fine, and others dont (considering the change of splash screen). All of them appear as if they should work, and they look very much the same (I cant spot the difference). All of the images are available online, but in some cases they dont appear on the splash screen.

Examples:

MPowerPlayer - doesnt show the image on the splash screen (although it is there if you check the url):
    <icon href="http://mpowerplayer.com/content/lib/mpp32.gif" kind="default"/>
    <icon href="http://mpowerplayer.com/content/lib/mpp-splash.jpg" kind="splash"/>

Chainsaw - shows both images:
    <icon href="http://logging.apache.org/log4j/docs/images/logo.jpg" kind="default"/>
    <icon href="http://logging.apache.org/log4j/docs/images/logo.jpg" kind="splash"/>


Mine is just the same - but doesnt work (although, the images are there)
    <icon href="http://localhost:8080/GEMALOGIC/line.png" kind="default"/>
    <icon href="http://localhost:8080/GEMALOGIC/line.png" kind="splash"/>

Anyone knows what's the problem here?

0
Comment
Question by:Dejan Pažin
  • 9
  • 5
  • 2
  • +1
18 Comments
 
LVL 86

Expert Comment

by:CEHJ
ID: 20334153
Do you have the jnlp urls of the above?
0
 
LVL 16

Expert Comment

by:ellandrd
ID: 20334252
I did read once that after you change the image, the first time you run it, the default image still shows.  but i think the second time you run it your own specfici image then shows...  dont know why this happens...
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 20334264
You should probably empty caches where possible
0
 
LVL 17

Author Comment

by:Dejan Pažin
ID: 20334683

>> Do you have the jnlp urls of the above?
You can get the jnlps here:

1. The one that doesnt work:
http://webstart.mpowerplayer.com/

2. The one that works:
http://www.jgoodies.com/download/demos/looks/looksdemo.jnlp

>> I did read once that after you change the image, the first time you run it, the default image still shows.  but i think the second time you run it your own specfici image then shows...

No. I ran it several times, the result is always the same.

>> You should probably empty caches where possible

I emptied cache completely. The result is the same. The only difference is that once the cache is empty, none of the applications show the correct splash screen on first run. On next run, the jgoodies again works fine.

0
 
LVL 16

Expert Comment

by:ellandrd
ID: 20334777
can we see your JNLP file please.
0
 
LVL 16

Expert Comment

by:ellandrd
ID: 20334842
this works for me:

i get this image: http://www.seandelaney.co.uk/media/leech.gif for a split second before the application loads..
<?xml version="1.0" encoding="utf-8"?>
 

<jnlp 

	spec="1.0+" 

	codebase="http://localhost/" 

	href="looksdemo.jnlp">

  <information>

    <title>Test</title>

    <vendor>Test</vendor>

    <homepage href="http://localhost/" />
 

    <description>Test</description>

    <description kind="short">Test</description>

    <description kind="tooltip">Test</description>
 

    <icon href="http://localhost/media/leech.gif" kind="splash" 	     />

    <offline-allowed />

  </information>

  <security>

    <all-permissions />

  </security>

  <resources>

    <j2se version="1.5+"	  />

    <jar href="test.jar" />

  </resources>

  <application-desc main-class="com.ellandrd.test" />

</jnlp>

Open in new window

0
 
LVL 16

Expert Comment

by:ellandrd
ID: 20334862
here is a screenshot:

http://www.seandelaney.co.uk/Untitled-1.png

ellandrd
0
 
LVL 17

Author Comment

by:Dejan Pažin
ID: 20335040

Below is my jnlp. I doubt you can tell anything from it, cause you cant launch it.

What you could tell me, is how come the two jnlps I mentioned dont function in the same way, although they look as they should.



<jnlp spec="1.5+" codebase="http://localhost:8080/GEMALOGIC/" href="http://localhost:8080/GEMALOGIC/gemalogic.jnlp">

  <information>

    <title>GEMALOGIC</title>

    <vendor>Genera Lynx d.o.o.</vendor>

    <homepage href="null"/>

    <description>GEMALOGIC by Genera Lynx d.o.o.</description>

    <icon href="http://localhost:8080/GEMALOGIC/line.png" kind="default"/>

    <icon href="http://localhost:8080/GEMALOGIC/line.png" kind="splash"/>

  </information>

  <security>

    <all-permissions/>

  </security>

  <update check="timeout" policy="always"/>

  <resources>

    <java version="1.5+"/>

    <jar href="http://localhost:8080/GEMALOGIC/lib/GemaSwingClient.jar" download="eager" main="true"/>

    <jar href="http://localhost:8080/GEMALOGIC/lib/BusinessInterfaces.jar" download="eager" main="false"/>

    <jar href="http://localhost:8080/GEMALOGIC/lib/ejb3-persistence.jar" download="eager" main="false"/>

    <jar href="http://localhost:8080/GEMALOGIC/lib/hibernate3.jar" download="eager" main="false"/>

    <jar href="http://localhost:8080/GEMALOGIC/lib/hibernate-annotations.jar" download="eager" main="false"/>

    <jar href="http://localhost:8080/GEMALOGIC/lib/jbossall-client.jar" download="eager" main="false"/>

    <jar href="http://localhost:8080/GEMALOGIC/lib/jboss-aop-jdk50-client.jar" download="eager" main="false"/>

    <jar href="http://localhost:8080/GEMALOGIC/lib/jboss-aspect-jdk50-client.jar" download="eager" main="false"/>

    <jar href="http://localhost:8080/GEMALOGIC/lib/jboss-ejb3x.jar" download="eager" main="false"/>

    <jar href="http://localhost:8080/GEMALOGIC/lib/log4j-1.2.13.jar" download="eager" main="false"/>

    <jar href="http://localhost:8080/GEMALOGIC/lib/looks-2.1.4.jar" download="eager" main="false"/>

    <jar href="http://localhost:8080/GEMALOGIC/lib/jfreechart-1.2.0-pre1.jar" download="eager" main="false"/>

  </resources>

  <application-desc main-class="generalynx.gema.swingclient.GemaLogic"/>

</jnlp>

Open in new window

0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
LVL 16

Expert Comment

by:ellandrd
ID: 20335104
>>What you could tell me, is how come the two jnlps I mentioned dont function in the same way, although they look as they should.

i cant see the inside the JNLP of the first one - mpower so i cant say.  however my test didnt show my custom splash image if i didnt have it in the same folder as the .jnlp but i assume you've alreday tried this...

my first guess to why the 2 examples you posted above dont work (well the 2nd one does) is the paths are incorrect for the image in the 1st one...

can you see the mpowers JNLP contents?
0
 
LVL 17

Author Comment

by:Dejan Pažin
ID: 20335217

>> can you see the mpowers JNLP contents?

Yes. You can see them if you start javaws viewer. Here it is:


<jnlp spec="1.0+" codebase="http://mpowerplayer.com/content/lib/">

  <information>

    <title>mpowerplayer</title>

    <vendor>mpowerplayer inc.</vendor>

    <homepage href="http://mpowerplayer.com"/>

    <description>Mobile applications on your desktop.</description>

    <description kind="short">Mobile applications on your desktop.</description>

    <icon href="http://mpowerplayer.com/content/lib/mpp32.gif" height="32" width="32" kind="default"/>

    <icon href="http://mpowerplayer.com/content/lib/mpp128.gif" height="128" width="128" kind="default"/>

    <icon href="http://mpowerplayer.com/content/lib/mpp-splash.jpg" kind="splash"/>

    <shortcut online="true">

      <menu/>

    </shortcut>

    <offline-allowed/>

  </information>

  <security>

    <all-permissions/>

  </security>

  <update check="timeout" policy="always"/>

  <resources>

    <java java-vm-args="-Xms16000k -XX:+DisableExplicitGC" version="1.5+"/>

    <jar href="http://mpowerplayer.com/content/lib/player.jar" download="eager" main="false"/>

    <jar href="http://mpowerplayer.com/content/lib/adapter.jar" download="eager" main="false"/>

    <jar href="http://mpowerplayer.com/content/lib/cldc.jar" download="eager" main="false"/>

    <jar href="http://mpowerplayer.com/content/lib/midp.jar" download="eager" main="false"/>

    <jar href="http://mpowerplayer.com/content/lib/protect.jar" download="eager" main="false"/>

    <jar href="http://mpowerplayer.com/content/lib/catalog.jar" download="eager" main="false"/>

    <nativelib href="http://mpowerplayer.com/content/lib/jdic-win-native.jar" download="eager" main="false"/>

  </resources>

  <application-desc/>

</jnlp>

Open in new window

0
 
LVL 16

Expert Comment

by:ellandrd
ID: 20335239
first off their opening jnlp tag is missing the href attribute to the .jnlp file...

i will see if this make any different in my example...
0
 
LVL 16

Expert Comment

by:ellandrd
ID: 20335241
difference - sorry - cant seen to spell correctly today!
0
 
LVL 16

Expert Comment

by:ellandrd
ID: 20335279
remove the href attribute and the image doesnt show... add it back in - my leech.gif image shows...
0
 
LVL 16

Expert Comment

by:ellandrd
ID: 20335284
it must be like:

<jnlp spec="1.0+" codebase="" href="">


ellandrd
0
 
LVL 17

Author Comment

by:Dejan Pažin
ID: 22127171

None if these helped. The problem wasnt solved.
0
 
LVL 17

Author Comment

by:Dejan Pažin
ID: 22358105

I found the answer myself, as someone else had the same problem. The problem is on the client side, there is a bug in java webstart, which prevents it from identifieing the location of splash icons (the splash.xml is corrupted if the Temporary Internet Files are located on a path with non ascii characters).

Here is the complete explanation:

http://www.experts-exchange.com/Programming/Languages/Java/Q_23672170.html#a22358076
0
 
LVL 1

Accepted Solution

by:
Computer101 earned 0 total points
ID: 22360665
PAQed with points refunded (500)

Computer101
EE Admin
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Suggested Solutions

INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now