I have been able to create a JNLP file, which successfully sets up a splash screen & a desktop icon for a Java program launched through Web Start. Here's the relevant chunk of the JNLP:
Now, to launch the program, I find I can either click on the JNLP, in which case the splash screen shows, or on the desktop icon, in which case the default Java Web Start splash screen shows instead. This is on Windows XP & Windows Vista, and it's Java 1.5 and Java 1.6.
Is there a way to get my splash screen to show when launching from the JNLP file, instead of the Java one?
Thanks.
Updating to the most recent minor upgrade of Java 6 seems to have fixed this, at least on the Windows platforms. So I am now on update 16. I was on 9 before I think, and this has been fixed somewhere along the line.
First thing I should have tried? Probably!
Related
I need to implement a SplashScreen in java, and i'm currently learning from How to Create a Splash Screen but there is paragraph that says
Fortunately, Java™ SE 6 provides a solution that allows the application to
display the splash screen much earlier, even before the virtual machine starts.
A Java application launcher is able to decode an image and display it in a
simple non-decorated window.
How is possible that java run the SplashScreen even if virtual machine starts if SplashScreen is a java class?
If you define the splash screen in your jar MANIFEST-file, it is loaded and displayed with native code before the Java VM is started. No need to load a class in that case. Later, you can get the SplashScreen instance to edit and/or close it.
Manifest entry:
SplashScreen-Image: images/splash.gif
Or command line option:
-splash:images/nnn.gif
Java Platform, Standard Edition (Java SE, formerly known as J2SE)
version 6, provides a solution that allows the application to show the
splash screen much earlier, even before the virtual machine starts.
Now, a Java application launcher is able to decode an image and
display it in a simple nondecorated window.
Source:
http://www.oracle.com/technetwork/articles/javase/splashscreen-135938.html
I have a legacy Java application that uses Java 1.3
It works fine on windows Xp but now I need to make it run on windows 7.
I have installed the 1.3 jdk however when it first loads, the app won't render properly. Bits of the screen just show grey background, selecting buttons won't load a new screen etc.
I do know watching the output from the app it just purely graphics not rendering properly.
However if I press "Ctrl-alt-delete" and then just press "cancel" the software runs perfectly.
If I have a second monitor plugged in, it runs perfectly.
Has anyone got any suggestions how to make app run perfectly first time.
Thanks
Firstly, update your java, no excuses not to.
You can try the hack of resizing your component to a different size and then back again. I find this is the best way to make sure that swing doesn't do this sort of mischief with black squares here and there.
These things happen from time to time with non native tools for desktop development as opposed to those specifically designed for the targeted platform.
I have designed a java applet in Linux environment and then it is have tested in Windows XP. But it shows nothing when used in Windows 7. The java console shows that it is working as per requirement but still it only shows a white screen with the buttons visible but no output.
Can anybody help me in understanding the issue and how it can be solved?
All I did was to provide the browser with administrative privileges by running it in Run As Administrator mode. Now my applet works fine and performs the assigned task.
I'm deploying applications using Java Web Start.
To my surprise, one can pin programs to the taskbar in Windows 7, however to my understanding this is only possible if the process in which the program runs is the same than the one that is behind the taskbar icon.
With a JWS application, that's not the case so the application can not be pinned to the taskbar, as shown in the following example:
The "u" is my application shortcut, pinned (from the start menu). The other (ugly) icon is the actual application, ran in another process, creating another icon which cannot be pinned. I only get the "Close window" option.
Would it be possible to have a pinnable JWS application?
I am trying to use vanilla j2me emulator from Java ME Platform SDK 3.2 on Windows 7 but it doesn't show any text on its screen.
It draws all ui controls but there is no text both in my midlet and in in emulator menu.
I assume that this is some kind of font problem I am not really sure. Does someone know how this can be fixed?