Link to home
Start Free TrialLog in
Avatar of pulupul
pulupul

asked on

Executing an applet in a previous version than the one it was compiled for.

What happens if an applet was compiled by a version of JDK, and the client visiting the web page which contains the applet has a previous version of JRE? Actually, the applet was compiled with JDK 1.5-beta2, and clients have JRE 1.4 or maybe previous versions.
Avatar of girionis
girionis
Flag of Greece image

If it does not use APIs only available on jdk1.5 then it would probably run. You might also get a bad magic number error.
It'll probably break, but i'm not 100% certain. Why not try it? ;-)
SOLUTION
Avatar of Webstorm
Webstorm

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of sudhakar_koundinya
sudhakar_koundinya

I agree with Webstorm
I'd guess that pulpul is fully aware of that, and s/he says:

>>and clients have JRE 1.4 or maybe previous versions.

What proportions are we're talking about in the above pulpul?
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of pulupul

ASKER

CEHJ not many PCs, just a LAN... about 20.
My solution also work for LAN.
If you applet requires a greater version of jre than is installed then they will need to upgrade.
Do you know what version your applet actually requires?
>>14. clients will run fine of course as long as you don't use any 1.5 features.

>>or you compile using the -target option to specify the minimum jdk version you need it to run on.

Those two suggestions seem to be rather contradictory. The second one is the one you should probably pay attention to

> Those two suggestions seem to be rather contradictory.

Not at all (though your selective quoting is misleading), suggest you read the question a bit more closely.

pulupul,

Let me know if you have any questions.
Avatar of pulupul

ASKER

Sorry for the delay, I've been pretty busy lately.