Link to home
Create AccountLog in
Java

Java

--

Questions

--

Followers

Top Experts

Avatar of DrAske
DrAske🇯🇴

This browser does not appear to support Applets.
what should I do??
I'm using IE ..

Zero AI Policy

We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.


Avatar of CEHJCEHJ🇬🇧

You need to install the JRE

www.java.sun.com/getjava

Avatar of DrAskeDrAske🇯🇴

ASKER

jre1.5.0 is already installed ..

Avatar of CEHJCEHJ🇬🇧

In that case, in the Control Panel Java 'applet' make sure that JRE is set to work with IE

Reward 1Reward 2Reward 3Reward 4Reward 5Reward 6

EARN REWARDS FOR ASKING, ANSWERING, AND MORE.

Earn free swag for participating on the platform.


Avatar of DrAskeDrAske🇯🇴

ASKER

I don't know how to do that ??
In the Control Panel Java 'applet' >> advanced tab >> "<applet> tag support">>Internet Explorer check box is already checked ..
Is that what you mean??

Avatar of CEHJCEHJ🇬🇧

Yes. Try this applet and tell me what happens:

http://www.w3.org/Protocols/Time/

Avatar of DrAskeDrAske🇯🇴

ASKER

Nothing happens!! it opens a normal page ..
>>>>>>>
World Time
Status of this Document
This page is no longer maintained. It is left in place for historical reasons.

Time on the Internet
Time is a funny concept and it turns out to be very difficult to maintain on the Internet.

Specs and Notes ... etc
>>>>>>>

Free T-shirt

Get a FREE t-shirt when you ask your first question.

We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.


Avatar of DrAskeDrAske🇯🇴

ASKER

EMMMMMMM!!!
I got this Message (Exception):
Your browser is not configured to show Java 1.1 applets. This would show a clock with the time in central European timezone.

Avatar of Mick BarryMick Barry🇦🇺

appears to be a problem with your install, try reinstalling the jre

Reward 1Reward 2Reward 3Reward 4Reward 5Reward 6

EARN REWARDS FOR ASKING, ANSWERING, AND MORE.

Earn free swag for participating on the platform.


Avatar of CEHJCEHJ🇬🇧

The last result you got is probably OK, but what result did you get at the last link?

Avatar of DrAskeDrAske🇯🇴

ASKER

It works fine on Mozilla FireFox browser, but doesn't work on IE ..

Avatar of CEHJCEHJ🇬🇧

M$ were threatening to withdraw applet support at some time, but are you *sure* the config looks right in the Control Panel?

Free T-shirt

Get a FREE t-shirt when you ask your first question.

We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.


ASKER CERTIFIED SOLUTION
Avatar of Mick BarryMick Barry🇦🇺

Link to home
membership
Log in or create a free account to see answer.
Signing up is free and takes 30 seconds. No credit card required.
Create Account

Avatar of DrAskeDrAske🇯🇴

ASKER

I'm using JDeveloper and I tried to run a simple applet program on Mozilla FireFox browser but it gives "Loading Java applet failed" message in the status bar,but when I run the applet on AppletViewer it runs as expected ..

Avatar of DrAskeDrAske🇯🇴

ASKER

Okay .. I'll try what you suggested, I'll be back!!
thanx for your time ..

Avatar of Mick BarryMick Barry🇦🇺

>  I'm using JDeveloper and I tried to run a simple applet program on Mozilla FireFox browser but it gives "Loading Java applet failed" message in the status bar,but when I run the applet on AppletViewer it runs as expected ..

check the console for errors (applet viewer and broweser are quite different containers).
Could be that u are doing something that is not permitter in a browser (such as accessing a file on disk)

Reward 1Reward 2Reward 3Reward 4Reward 5Reward 6

EARN REWARDS FOR ASKING, ANSWERING, AND MORE.

Earn free swag for participating on the platform.


Avatar of DrAskeDrAske🇯🇴

ASKER

this is the applet ..

package mypackage;
import java.awt.Graphics;
import javax.swing.JApplet;
import java.awt.Dimension;
import java.awt.Toolkit;
import java.awt.BorderLayout;
import javax.swing.JFrame;
import javax.swing.UIManager;

public class Applet1 extends JApplet
{
  public Applet1()
  {
  }

  public void init()
  {
    try
    {
      jbInit();
     
     
    }
    catch(Exception e)
    {
      e.printStackTrace();
    }

  }

  private void jbInit() throws Exception
  {
    this.getContentPane().setLayout(null);
  }

  static  
  {
    try
    {
      UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
      UIManager.setLookAndFeel(UIManager.getCrossPlatformLookAndFeelClassName());
    }
    catch(Exception e)
    {
    }

  }
 
  public void paint( Graphics g) {
      /** show the results */
      g.drawRect( 15, 20, 200, 105 ) ;
      g.drawString( "Hello Ahmad", 25, 45 ) ;
     // g.drawString( "My name is TAW ", 25, 75 ) ;

   }
}

Avatar of Mick BarryMick Barry🇦🇺

check the error in the console

and set the l&f in init instead of a static block
(why are you setting it twice?)


Avatar of DrAskeDrAske🇯🇴

ASKER

I reinstall it, yet nothing change!!
So I will use FireFox ..

>>(why are you setting it twice?)
I didn't notice that :o)

thanx for your time,
regards,

Free T-shirt

Get a FREE t-shirt when you ask your first question.

We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.


Avatar of CEHJCEHJ🇬🇧

>>I didn't notice that :o)

That's not the reason for your error

Avatar of DrAskeDrAske🇯🇴

ASKER

>>That's not the reason for your error
Yea I know :o)

Actually, I didn't reinstall jre properly in the first time, but when I reinstall it *again* the problem gone, and now every thing works as expected ;o) I think the previous JRE was corrupted ..

thanx for both of you ..
I really appreciate your help,
regards,Ahmad;



 

Avatar of Mick BarryMick Barry🇦🇺

> That's not the reason for your error

noone said it was.

Reward 1Reward 2Reward 3Reward 4Reward 5Reward 6

EARN REWARDS FOR ASKING, ANSWERING, AND MORE.

Earn free swag for participating on the platform.

Java

Java

--

Questions

--

Followers

Top Experts

Java is a platform-independent, object-oriented programming language and run-time environment, designed to have as few implementation dependencies as possible such that developers can write one set of code across all platforms using libraries. Most devices will not run Java natively, and require a run-time component to be installed in order to execute a Java program.