We are experiencing a strange issue with a Java Web Start application, maybe someone of you could help us to find the solution ?
We have a Java Web Start application that ran flawless from within a Firefox browser; the operating system being Win XP, and java JRE 1.6 were installed.
We made also a backup of the pc, using Acronis 2011. So far, so good.
Las time we had an hardware issue, and we have to change the pc with another one. The hardware of the new pc differs a bit from the old one; but we could install all the operative system and data on the new pc using the Acronis backup, and that without problem - well, we had of course to install the right drivers for the 'new' hardware.
The problem arises as we run again the same Java Web Start application; in fact, it works no more, and java complains about a strange Class Cast exception:
So we have unistalled JRE, ran CrapCleaner, and re-installed java JRE - same error. We have also tried to install a newer java JRE, still no joy.
We suppose that the problem could be that the target pc has a different hardware from the source pc; still, apart of un-install and re-install the JRE, we don't know how to solve the issue.
It sounds rather as if the JRE is handling fonts differently on the new machine than it was on the old machine. (This might come under the heading of "we had of course to install the right drivers for the 'new' hardware".) But that is just a wild guess.
Do you get the same problem if you run your code as a plain old Java application on the new machine, instead of via JNLP?
Joined: Jun 20, 2008
unfortunately we don't have the source code of the application, so we could not know if the same problem would arise with a plain old java application..
Did you try to clear the Java cache using Java Control Panel? I suppose it was restored with other files using Acronis and maybe it lived through both the JRE reinstallation and the CrapCleaner. We sometimes experience errors that get solved by clearing the Java cache, though in a circumstances different from yours.
Joined: Jun 20, 2008
We have solved by changing the 'look an feel', from 'nimbus' to 'metal'.
There's a config file - something like 'portal.ini' - which can be changed, and affects the application.