Skip to main content

where do i put the icon file?

3 replies [Last post]
derek_111
Offline
Joined: 2005-09-06

I am deploying an application that i launch using webstart.
I read this blog about using custom icons.

http://blogs.sun.com/quinn/entry/specifying_icon_and_splash_images

I am able to get the vendor name, and application name to show up correctly, but i am not able to get the icon to show up. I am guessing i have the icon in the wrong location.

my ear looks like this:

somejar.jar
somejar2.jar
ApplicationClientTest.jar
application.xml
Manifest.mf

my application.xml looks like this:

<?xml version="1.0" encoding="UTF-8"?>

ApplicationClientEarTest

ApplicationClientTest.jar

my app client jar looks like this:

logo.gif
com\company\clients\Main.class
meta-inf\application-client.xml
meta-inf\manifest.mf
meta-inf\sun-application-client.xml

my application-client.xml looks like this:

<?xml version="1.0" encoding="UTF-8"?>

Style Editor

my manifest.mf looks like this:

Manifest-Version: 1.0
Main-Class: com.company.clients.Main

my sun-application-client.xml looks like this:

<?xml version="1.0" encoding="UTF-8"?>

logo.gif::Bealls, Inc.

where should the icon be located in the packaging structure????
thanks.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
tjquinn
Offline
Joined: 2005-03-30

At a quick glance, your packaging looks OK.

Can you tell us what build of GlassFish and what JDK you are using?

Thanks.

- Tim

derek_111
Offline
Joined: 2005-09-06

oops, nevermind.

it appears that it is showing the icon.
it shows it on the javaws v1.5 download/installing dialog.
it is also showing it on the desktop.

it just doesnt show it on the javaws v1.6 download/installing dialog. i guess they changed it in 1.6 to no longer show an icon? that is what was messing me up. i kept expecting to see the icon in the downloading/installing dialog for v1.6, but it doesnt i guess.

tjquinn
Offline
Joined: 2005-03-30

Hi, again.

No need to "oops!" That's mostly why I asked about the versions - there seem to be some issues with the image handling by Java Web Start in Java SE 6. I see the same behavior you've described on a simple test app: the image is displayed with Java SE 5 but not 6.

- Tim