• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Applet not working on old computers

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi everyone,

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.
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?

For which JDK version is the applet compiled?
 
Anna Flanneur
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Ulf Dittmer wrote: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?

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":

<applet code="Myapplet.class" width="860" height="600"> </applet>

only work on new computer, Only work on IE :

<object classid="clsid:CAFEEFAC-0015-0000-0000-ABCDEFFEDCBA" width="1000" align="center" height="85">
<param name="code" value="MyApplet.class" />
<comment>
<embed code="MyApplet.class" name="MyAppletFF" java_codebase="/html_base/" type="application/x-java-applet;version=1.5.0" pluginspage="http://java.sun.com/j2se/1.5.0/download.html">
<noembed> No Java Support. </noembed>
</embed>
</comment>

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
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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.
 
Ranch Hand
Posts: 120
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Try to use



 
Anna Flanneur
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Moojid Hamid wrote:Try to use





Hi Moojid Hamid & Ulf Dittmer,


Thank you so much . It compiles. Thank you . Thank you.

Now, I am going to test it online.

Thanks again.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic