Solved

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

Posted on 2004-08-22
16
150 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
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
mockito example issue 8 72
more than one jdk and one jre 1 41
map related example 6 47
Detect Closed Loops (circles, figure-8s, etc) in PNG Images 6 31
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…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

806 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