Solved

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

Posted on 2004-08-22
16
151 Views
Last Modified: 2013-11-23
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.
0
Comment
Question by:pulupul
  • 5
  • 3
  • 3
  • +3
16 Comments
 
LVL 35

Expert Comment

by:girionis
ID: 11865340
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.
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 11865343
It'll probably break, but i'm not 100% certain. Why not try it? ;-)
0
 
LVL 13

Assisted Solution

by:Webstorm
Webstorm earned 25 total points
ID: 11865436
Hi pulupul,

Most browser are IE with its default JRE (version 1.1.x or less) which will not be updated by microsoft. Since this very old version, some internal structures have changed, and most applets compiled with recent compiler cannot run on this old JRE.
You can use HtmlConverter (tool included in JDK) which translate the classic APPLET tag to an OBJECT tag, in order to allow client browsers to update their JRE.

0
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
LVL 14

Expert Comment

by:sudhakar_koundinya
ID: 11865527
I agree with Webstorm
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 11865540
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?
0
 
LVL 92

Accepted Solution

by:
objects earned 100 total points
ID: 11865814
14. clients will run fine of course as long as you don't use any 1.5 features.

If you are targetting earlier versions then I'd suggest using the minimum version jdk you need to support  or you compile using the -target option to specify the minimum jdk version you need it to run on.
0
 
LVL 3

Author Comment

by:pulupul
ID: 11866220
CEHJ not many PCs, just a LAN... about 20.
0
 
LVL 13

Expert Comment

by:Webstorm
ID: 11866238
My solution also work for LAN.
0
 
LVL 92

Expert Comment

by:objects
ID: 11866242
If you applet requires a greater version of jre than is installed then they will need to upgrade.
0
 
LVL 92

Expert Comment

by:objects
ID: 11866247
Do you know what version your applet actually requires?
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 11867751
>>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

0
 
LVL 92

Expert Comment

by:objects
ID: 11867768
> 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.
0
 
LVL 3

Author Comment

by:pulupul
ID: 12105119
Sorry for the delay, I've been pretty busy lately.
0
 
LVL 13

Expert Comment

by:Webstorm
ID: 12110311
:-)
0
 
LVL 92

Expert Comment

by:objects
ID: 12117599
:)
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
windows explorer path to command prompt 5 54
javap not working 8 59
How do I remove an object from a 3 40
Running JavaFX on the Raspberry Pi 27 46
An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question