Solved

Change splash screen image in Java WebStart

Posted on 2007-11-22
18
1,622 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Passing list of object to Oracle Database Procedure 3 59
groupNoAdj 7 85
sites similar to codingbat to improve coding hanson skills 3 40
Windows 10 IE Certificate Issue 10 41
After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
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 …

911 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

19 Experts available now in Live!

Get 1:1 Help Now