Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1953
  • Last Modified:

Change splash screen image in Java WebStart

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
Dejan Pažin
Asked:
Dejan Pažin
  • 9
  • 5
  • 2
  • +1
1 Solution
 
CEHJCommented:
Do you have the jnlp urls of the above?
0
 
ellandrdCommented:
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
 
CEHJCommented:
You should probably empty caches where possible
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
Dejan PažinHead of SW DevelopmentAuthor Commented:

>> 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
 
ellandrdCommented:
can we see your JNLP file please.
0
 
ellandrdCommented:
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
 
ellandrdCommented:
here is a screenshot:

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

ellandrd
0
 
Dejan PažinHead of SW DevelopmentAuthor Commented:

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
 
ellandrdCommented:
>>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
 
Dejan PažinHead of SW DevelopmentAuthor Commented:

>> 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
 
ellandrdCommented:
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
 
ellandrdCommented:
difference - sorry - cant seen to spell correctly today!
0
 
ellandrdCommented:
remove the href attribute and the image doesnt show... add it back in - my leech.gif image shows...
0
 
ellandrdCommented:
it must be like:

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


ellandrd
0
 
Dejan PažinHead of SW DevelopmentAuthor Commented:

None if these helped. The problem wasnt solved.
0
 
Dejan PažinHead of SW DevelopmentAuthor Commented:

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
 
Computer101Commented:
PAQed with points refunded (500)

Computer101
EE Admin
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 9
  • 5
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now