We help IT Professionals succeed at work.

How can I force upgrade of Java if 1.3 or lower installed or the MS JVM is installed?

ebertk
ebertk asked
on
266 Views
Last Modified: 2013-12-14
I have a series of Java applets that currently work with almost any version of Java 1.1 and higher.  This includes the MS JVM.  I am moving completely away from the MS JVM and the next version will not work with that version of Java (change is two fold:  1.  Migration due to end of life of MS  JVM  2. Begin using more advanced features not that the MS JVM is finally going away (kind of)).

I am looking for the best way to allow anyone using Java 1.3 or higher to use the APPLET and all lower versions, including the MS JVM to be required to upgrade.  Its important not to force an upgrade unless the apsolutely are 1.3 or lower.  We currently use the APPLET tag, would the OBJECT tag allow us to do this and if so how?  Any compability issues with older browsers or different operating systems?

Hoping we can do this all in HTML without having to add Java code into the applet itself.

THanks in advance.
Comment
Watch Question

Java Architect
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION
Bart CremersJava Architect

Commented:
This specifies 1.6 is required for running the applet. Other minimum versions require other classid strings for IE

Author

Commented:
Bart CR, yes this does in fact work - but its kind of ugly and I have to list all my parameters twice 'we can have as many as 100 parameters for a single applet'.  Found another solution, where we only use the OBJECT tag and you conditionally insert the classid for IE.  Works a little better than your example, but your example helped me figure out how to do this.

Thanks

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.