It's easy to do but why it doesn't works??

G

gbattine

Please help me guys,
i'm not able to solve my problem,i'm trying and trying.
I've downloaded from
http://java.sun.com/products/plugin/1.5.0/demos/plugin/applets.html
an applet demo,the clock.
i've tested it with this simple html file
Code:
<html>
<head>
<title>
HTML Test Page
</title>
</head>
<body>
<br>
<center>
<applet code="Clock.class" width=170 height=150>
<param name=bgcolor value="000000">
<param name=fgcolor1 value="ff0000">
<param name=fgcolor2 value="ff00ff">
</applet>
</center>
</body>
</html>

and it works well.
My file Clock.class is located in c:\

Now i have to import this applet into my jsf application.
I've tried with this simple jsf page
Code:
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<html>
<head>
<title>
HTML Test Page
</title>
</head>
<body>
<br>
<center>
<applet code="Clock.class" width=170 height=150>
<param name=bgcolor value="000000">
<param name=fgcolor1 value="ff0000">
<param name=fgcolor2 value="ff00ff">
</applet>
</center>
</body>
</html>

but i see only the delimiters of applet,it doesn't run and block my
system with an error
Code:
error loading class java/sun/javaRunTime

The strange fact is that when i run it from html file everythings go
well!!!!
I use ExadelStudio,i hope you can help me.
Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,818
Latest member
Brigette36

Latest Threads

Top