aspose file tools*
The moose likes Applets and the fly likes Forcing another java version for applet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
Bookmark "Forcing another java version for applet" Watch "Forcing another java version for applet" New topic
Author

Forcing another java version for applet

Humpe Caballero
Greenhorn

Joined: Apr 21, 2005
Posts: 4
HI, I got a strange problem when I need to force the users to use java 1.5 instead of the latest installed 1.6.

To do so I changed the clsid: in the <object>-tag to clsid:CAFEEFAC-0014-0002-FFFF-ABCDEFFEDCBA

When loading the applet I get a security question if I'm really sure I want to use the older version (So far so good). But the splash screen in the applet area while loading is the new orange 1.6 one and not the older 1.5. If I open the java console it says 1.5. Also I got the same program errors as I have in 1.6 (This is suppose to buy me some time to fix those) so some how it still runs under java 1.6 despite the console says 1.5 (?)

I tried it one some coworkers machines and on some of them it works and on some it won't. I suspect the machines with problems are the once where java has been installed and uninstalled plenty?

Anyone have any good ideas or maybe even a solution to my problem?

Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39551
    
  27
The Java Plugin Guide makes it sound as if you can specify the minimum JRE version to be used, but not the exact version if more than one is installed. Is there any chance of fixing the applet so that it runs under both Java 5 and 6? In general, that shouldn't be a big task.

Be sure to read http://java.sun.com/javase/6/docs/technotes/guides/plugin/developer_guide/using_tags.html#mixed if you have different browsers using the applet.


Ping & DNS - updated with new look and Ping home screen widget
Humpe Caballero
Greenhorn

Joined: Apr 21, 2005
Posts: 4
Ulf Dittmer wrote:The Java Plugin Guide makes it sound as if you can specify the minimum JRE version to be used, but not the exact version if more than one is installed. Is there any chance of fixing the applet so that it runs under both Java 5 and 6? In general, that shouldn't be a big task.

Be sure to read http://java.sun.com/javase/6/docs/technotes/guides/plugin/developer_guide/using_tags.html#mixed if you have different browsers using the applet.


I'm aware that I can only specify the java family to use, but I still need to force my applet to use 1.5 (any 1.5 version is ok) when 1.6 still is installed on the machine.

We have some rather tricky problems regarding windows focus when it comes to IE7 and Java 1.6 so we need the time we would get by forcing the user to keep running 1.5 :-(
securetechie techie
Greenhorn

Joined: Nov 18, 2008
Posts: 7
try in a game forum.


Buy SSL certificates today and secure your website. Visit: http://sslstar.com/
Amit Ghorpade
Bartender

Joined: Jun 06, 2007
Posts: 2712
    
    5

"securetechie techie " please check your private messages for an important administrative matter. You can check them by clicking the My Private Messages link above.


SCJP, SCWCD.
|Asking Good Questions|
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Forcing another java version for applet
 
Similar Threads
Glassfish installation on Windows
Problem with Applet using JRE 1.6
Applet not using the latest installed JRE but using the one selected in Java control panel
Mac-specific applet-Javascript communication problem
basics for applet running on different jre's ?