when people go on my website to view my applets, only people with new computers are able to view the applets. I tried changing the HTML <applet> tag to <object>, but that did not fix the problem: the <object> tag actually prevent the new computers from loading the applets as well.
Can anyone help?
Thank you.
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35249
7
posted
0
Welcome to JavaRanch.
These days, you should use the <applet> tag, not "object" or "embed".
What does "not able to run" mean? Are there any messages in the browser status bar, or -more importantly- in the Java Console?
These days, you should use the <applet> tag, not "object" or "embed".
What does "not able to run" mean? Are there any messages in the browser status bar, or -more importantly- in the Java Console?
For which JDK version is the applet compiled?
Hi Ulf Ditmer ,
with the applet tag, in the old computers a blank screen appear in the place of the applet; in some cases the java logo doesn't appear at all, when it does appear the console then says the class file is not found.
where as in the new computers all the applets load without any problem.
sample:
works on all new computer ; browser "FF, O, IE, Safari":
From what you've told me I will use the applet tag, but I am still unable to load my applet on old computers.
That's the jdk version used to compile:
JDK 6 (1.6.0.11.3)
jdk-6u7-windows-x64
Thanks for the prompt response and your assistance.
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35249
7
posted
0
That's the jdk version used to compile: JDK 6 (1.6.0.11.3)
That could be part of the reason why it's not working on all machines. Code that gets compiled with Java 6 won't run on machines that have Java 5 (or earlier) installed, unless you take special precautions to make it run there. Java 6 is the newest released Java version, and not everybody may have it yet.
If I were to write an applet for public use, I'd might not even use Java 5 for it, but stick with Java 1.4 instead.
Anna Flanneur
Greenhorn
Joined: May 16, 2009
Posts: 9
posted
0
Ulf Dittmer wrote:
That's the jdk version used to compile: JDK 6 (1.6.0.11.3)
That could be part of the reason why it's not working on all machines. Code that gets compiled with Java 6 won't run on machines that have Java 5 (or earlier) installed, unless you take special precautions to make it run there. Java 6 is the newest released Java version, and not everybody may have it yet.
If I were to write an applet for public use, I'd might not even use Java 5 for it, but stick with Java 1.4 instead.
Hi Ulf Dittmer,
you are right, Thank you so much.
I have tried using "-target 1.4....." on my current jdk 6 but it is not going through, I have also tried "-target 1.5" which turn out to work, but now that you advice me on using jkd 1.4 I have the following question: Do I need to used JDk 1.4 to re-code my applets? or will compiling my existing applet on a Jdk 1.4 will fix my problem?
once again Thank you for assisting me.
Moojid Hamid
Ranch Hand
Joined: Mar 07, 2009
Posts: 120
posted
0
Try to use
Anna Flanneur
Greenhorn
Joined: May 16, 2009
Posts: 9
posted
0
Moojid Hamid wrote:Try to use
Hi Moojid Hamid & Ulf Dittmer,
Thank you so much . It compiles. Thank you . Thank you.