File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JNLP and Web Start and the fly likes Distinguish between 1.4.2_03 and 1.4.2_06 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JNLP and Web Start
Bookmark "Distinguish between 1.4.2_03 and 1.4.2_06" Watch "Distinguish between 1.4.2_03 and 1.4.2_06" New topic

Distinguish between 1.4.2_03 and 1.4.2_06

Neil Laurance
Ranch Hand

Joined: Jul 18, 2002
Posts: 183
Please forgive my crossposting (message also posted to JDC Forums)

I was wondering if anyone could provide some advice:

Our webstart app works fine on 1.4.2_03, but throws a CORBA marshalling error on 1.4.2_06. The class it fails to marshall is a MutableTreeNode, so it appears this class is incompatible between the JRE used on the server and the JRE used on the client.

To prevent this, I was hoping there was some way to distinguish between the 2 JREs. From my understanding of the JNLP spec, I can have something like:

But this would mean the localURL gets called each time, and a JRE repeatedly installed. Another idea I had was to create a small Main Proxy class that each JNLP invokes first, which would check the JRE version, then pass over to the real application.

Any other ideas? Thanks, Neil
Jared Cope
Ranch Hand

Joined: Aug 18, 2004
Posts: 243

Specifying the exact JRE to have installed on the users machine is a good idea I think. I actually had a similar problem to you, except I needed the users to have 1.4.2_06 installed to take advantage of extra charsets and encoding etc.

I don't think the runtime would install each and every time, just the once if it wasn't installed already. However, I am not sure that it would fix your problem if users have a later version installed such as 1.4.2_06. I thought that the specified runtime was a minimum, not the exact. So if they have some later version then it would be used instead. I could well be wrong on this though.

You would need to test this out.

You other idea sounds workable, but as you probably are thinking its not the ideal situation.

Post back, let me know how it works out.

Cheers, Jared.

SCJP 1.4 91%, SCJP 1.5 88%, SCJD B&S
I agree. Here's the link:
subject: Distinguish between 1.4.2_03 and 1.4.2_06
It's not a secret anymore!