• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Possible to have browser use different version of Java (1.6) then on host?

aceO07

Diamond Member
Is it possible to use make a browser use a version of Java that was not installed on the host computer. The version of Java can exist, but just can't be installed so that it hooks into the system.

Host computer MUST have 1.5 (for other apps), but an applet needs 1.6. Can you make it so that a browser can use 1.6 for this applet. The browser can be different from the one installed on the system and does not need to adapt to the version. It can be a unique version that just uses 1.6.
 
By "host" do you mean the web/application server? Is the applet running on the host itself or on the client browser connected to the host via HTTP?
 
Host is the client computer. The applet is written in 1.6, but the client machine must have 1.5 due to other requirements. Nothing to do with the server machines.
 
Ok, that's clearer.

Multiple versions of the Java Runtime Environment can coexist peacefully. The only thing you may need to be concerned about is how the applications and applet determine which version of the JRE to load. Applets can request a very specific version of the JRE (i.e. must be 1.6) or just the most recent version available. Your apps may have specific configuration files to point them to the correct runtime.
 
Originally posted by: MrChad
Ok, that's clearer.

Multiple versions of the Java Runtime Environment can coexist peacefully. The only thing you may need to be concerned about is how the applications and applet determine which version of the JRE to load. Applets can request a very specific version of the JRE (i.e. must be 1.6) or just the most recent version available. Your apps may have specific configuration files to point them to the correct runtime.

The real issue is the client company with the client computers is using 1.5 and whichever other applet they require needs 1.5. The control of other applets or the programming for is it isn't in our control. The applet we developed is in 1.6.

I assume that if we (can make) them upgrade to 1.6, their 1.5 applet won't work unless it was specifically set for 1.5 since it'd use the latest version according to what you wrote.

One possibility is to set up an isolated environment, like a portable application that would encompass the browser and java 1.6. Another is to provide a terminal server solution, but that's most definitely not a solution since that'll require additional servers/network/cost and additional software on client machines.

Actually now that I think about it, I don't really know why the 1.5 applet won't work with 1.6, but that's just what I've been told. I'm not on that project, but merely been posed the question so I thought I'd ask around.
 
You might be able to do it with ActiveX or something, but it'd probably be pretty ugly. I'm thinking you'd want to get a JVM that is just a standalone windows application that doesn't register itself as a JVM (so every other app runs alright) and then you can have the ActiveX control just run that.

It's sloppy, but it might work. The best solution would be to just modify the other app so that it specifies version 1.5, if you can get them to do that. I'd suspect you'll end up running into problems down the road if you keep this roadblock for upgrading java around.
 
The easiest solution is to focus on areas that you can control. Can you compile your applet under 1.5?
 
Back
Top