Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2004-08-22
16
Medium Priority
?
154 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 100 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
Build and deliver software with DevOps

A digital transformation requires faster time to market, shorter software development lifecycles, and the ability to adapt rapidly to changing customer demands. DevOps provides the solution.

 
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 400 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

Build and deliver software with DevOps

A digital transformation requires faster time to market, shorter software development lifecycles, and the ability to adapt rapidly to changing customer demands. DevOps provides the solution.

Question has a verified solution.

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

Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
Suggested Courses

722 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