Solved

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

Posted on 2004-08-22
16
148 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
 
LVL 14

Expert Comment

by:sudhakar_koundinya
Comment Utility
I agree with Webstorm
0
 
LVL 86

Expert Comment

by:CEHJ
Comment Utility
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
Comment Utility
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
Comment Utility
CEHJ not many PCs, just a LAN... about 20.
0
6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

 
LVL 13

Expert Comment

by:Webstorm
Comment Utility
My solution also work for LAN.
0
 
LVL 92

Expert Comment

by:objects
Comment Utility
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
Comment Utility
Do you know what version your applet actually requires?
0
 
LVL 86

Expert Comment

by:CEHJ
Comment Utility
>>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
Comment Utility
> 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
Comment Utility
Sorry for the delay, I've been pretty busy lately.
0
 
LVL 13

Expert Comment

by:Webstorm
Comment Utility
:-)
0
 
LVL 92

Expert Comment

by:objects
Comment Utility
:)
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
stringclean challenge 26 54
strDist challenge 35 84
topping3 challenge 14 48
HashMap Vs TreeMap 12 47
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
The viewer will learn how to implement Singleton Design Pattern in Java.

772 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now